.class public Lrexsee/natives/ViewStyle;
.super Ljava/lang/Object;
.source "ViewStyle.java"


# direct methods
.method public constructor <init>()V
    .locals 0

    .prologue
    .line 80
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method

.method public static create(Lrexsee/core/browser/Browser;Ljava/lang/String;ILjava/lang/String;Ljava/lang/String;Lrexsee/natives/RexseeJavaView;)Lrexsee/natives/ViewTag;
    .locals 9
    .param p0, "browser"    # Lrexsee/core/browser/Browser;
    .param p1, "id"    # Ljava/lang/String;
    .param p2, "uniqueId"    # I
    .param p3, "type"    # Ljava/lang/String;
    .param p4, "style"    # Ljava/lang/String;
    .param p5, "javaView"    # Lrexsee/natives/RexseeJavaView;

    .prologue
    .line 84
    if-eqz p3, :cond_0

    invoke-virtual {p3}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v1

    const-string v2, ""

    invoke-virtual {v1, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_1

    :cond_0
    const/4 p0, 0x0

    .line 550
    .end local p0    # "browser":Lrexsee/core/browser/Browser;
    .end local p1    # "id":Ljava/lang/String;
    .end local p2    # "uniqueId":I
    :goto_0
    return-object p0

    .line 86
    .restart local p0    # "browser":Lrexsee/core/browser/Browser;
    .restart local p1    # "id":Ljava/lang/String;
    .restart local p2    # "uniqueId":I
    :cond_1
    invoke-virtual {p0}, Lrexsee/core/browser/Browser;->getContext()Landroid/content/Context;

    move-result-object v2

    .line 87
    .local v2, "context":Landroid/content/Context;
    const/4 v7, 0x0

    .line 91
    .local v7, "canHaveChild":Z
    const-string v1, "FrameLayout"

    invoke-virtual {p3, v1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_3

    .line 92
    const/4 v7, 0x1

    .line 93
    new-instance v6, Landroid/widget/FrameLayout;

    invoke-direct {v6, v2}, Landroid/widget/FrameLayout;-><init>(Landroid/content/Context;)V

    .line 536
    .local v6, "view":Landroid/view/View;
    :goto_1
    :try_start_0
    invoke-virtual {v6, p2}, Landroid/view/View;->setId(I)V

    .line 537
    new-instance v1, Lrexsee/natives/ViewStyle$23;

    invoke-direct {v1, p0}, Lrexsee/natives/ViewStyle$23;-><init>(Lrexsee/core/browser/Browser;)V

    invoke-virtual {v6, v1}, Landroid/view/View;->setOnKeyListener(Landroid/view/View$OnKeyListener;)V

    .line 544
    new-instance v1, Lrexsee/natives/ViewTag;

    move-object v3, p1

    move v4, p2

    move-object v5, p3

    invoke-direct/range {v1 .. v7}, Lrexsee/natives/ViewTag;-><init>(Landroid/content/Context;Ljava/lang/String;ILjava/lang/String;Landroid/view/View;Z)V

    .line 545
    .local v1, "viewTag":Lrexsee/natives/ViewTag;
    invoke-virtual {v6, v1}, Landroid/view/View;->setTag(Ljava/lang/Object;)V

    .line 546
    const-string p1, "debug"

    .end local p1    # "id":Ljava/lang/String;
    invoke-virtual {p4, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result p1

    if-nez p1, :cond_2

    invoke-static {p0, v1, p4, p5}, Lrexsee/natives/ViewStyle;->setStyle(Lrexsee/core/browser/Browser;Lrexsee/natives/ViewTag;Ljava/lang/String;Lrexsee/natives/RexseeJavaView;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    :cond_2
    move-object p0, v1

    .line 547
    goto :goto_0

    .line 94
    .end local v1    # "viewTag":Lrexsee/natives/ViewTag;
    .end local v6    # "view":Landroid/view/View;
    .restart local p1    # "id":Ljava/lang/String;
    :cond_3
    const-string v1, "AbsoluteLayout"

    invoke-virtual {p3, v1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_4

    .line 95
    const/4 v7, 0x1

    .line 96
    new-instance v6, Lrexsee/natives/widget/AbsoluteLayout;

    invoke-direct {v6, v2}, Lrexsee/natives/widget/AbsoluteLayout;-><init>(Landroid/content/Context;)V

    .restart local v6    # "view":Landroid/view/View;
    goto :goto_1

    .line 97
    .end local v6    # "view":Landroid/view/View;
    :cond_4
    const-string v1, "RelativeLayout"

    invoke-virtual {p3, v1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_5

    .line 98
    const/4 v7, 0x1

    .line 99
    new-instance v6, Landroid/widget/RelativeLayout;

    invoke-direct {v6, v2}, Landroid/widget/RelativeLayout;-><init>(Landroid/content/Context;)V

    .restart local v6    # "view":Landroid/view/View;
    goto :goto_1

    .line 100
    .end local v6    # "view":Landroid/view/View;
    :cond_5
    const-string v1, "TableLayout"

    invoke-virtual {p3, v1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_6

    .line 101
    const/4 v7, 0x1

    .line 102
    new-instance v6, Landroid/widget/TableLayout;

    invoke-direct {v6, v2}, Landroid/widget/TableLayout;-><init>(Landroid/content/Context;)V

    .restart local v6    # "view":Landroid/view/View;
    goto :goto_1

    .line 103
    .end local v6    # "view":Landroid/view/View;
    :cond_6
    const-string v1, "TableRow"

    invoke-virtual {p3, v1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_7

    .line 104
    const/4 v7, 0x1

    .line 105
    new-instance v6, Landroid/widget/TableRow;

    invoke-direct {v6, v2}, Landroid/widget/TableRow;-><init>(Landroid/content/Context;)V

    .restart local v6    # "view":Landroid/view/View;
    goto :goto_1

    .line 106
    .end local v6    # "view":Landroid/view/View;
    :cond_7
    const-string v1, "ScrollView"

    invoke-virtual {p3, v1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_8

    .line 107
    const/4 v7, 0x1

    .line 108
    new-instance v6, Lrexsee/natives/ViewStyle$1;

    invoke-direct {v6, v2, p0}, Lrexsee/natives/ViewStyle$1;-><init>(Landroid/content/Context;Lrexsee/core/browser/Browser;)V

    .restart local v6    # "view":Landroid/view/View;
    goto :goto_1

    .line 130
    .end local v6    # "view":Landroid/view/View;
    :cond_8
    const-string v1, "HorizontalScrollView"

    invoke-virtual {p3, v1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_9

    .line 131
    const/4 v7, 0x1

    .line 132
    new-instance v6, Lrexsee/natives/ViewStyle$2;

    invoke-direct {v6, v2, p0}, Lrexsee/natives/ViewStyle$2;-><init>(Landroid/content/Context;Lrexsee/core/browser/Browser;)V

    .restart local v6    # "view":Landroid/view/View;
    goto :goto_1

    .line 155
    .end local v6    # "view":Landroid/view/View;
    :cond_9
    const-string v1, "LinearLayout"

    invoke-virtual {p3, v1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_a

    .line 156
    const/4 v7, 0x1

    .line 157
    new-instance v6, Landroid/widget/LinearLayout;

    invoke-direct {v6, v2}, Landroid/widget/LinearLayout;-><init>(Landroid/content/Context;)V

    .restart local v6    # "view":Landroid/view/View;
    goto/16 :goto_1

    .line 158
    .end local v6    # "view":Landroid/view/View;
    :cond_a
    const-string v1, "RadioGroup"

    invoke-virtual {p3, v1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_b

    .line 159
    const/4 v7, 0x1

    .line 160
    new-instance v6, Landroid/widget/RadioGroup;

    invoke-direct {v6, v2}, Landroid/widget/RadioGroup;-><init>(Landroid/content/Context;)V

    .restart local v6    # "view":Landroid/view/View;
    goto/16 :goto_1

    .line 161
    .end local v6    # "view":Landroid/view/View;
    :cond_b
    const-string v1, "ViewAnimator"

    invoke-virtual {p3, v1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_c

    .line 162
    const/4 v7, 0x1

    .line 163
    new-instance v6, Landroid/widget/ViewAnimator;

    invoke-direct {v6, v2}, Landroid/widget/ViewAnimator;-><init>(Landroid/content/Context;)V

    .restart local v6    # "view":Landroid/view/View;
    goto/16 :goto_1

    .line 164
    .end local v6    # "view":Landroid/view/View;
    :cond_c
    const-string v1, "ViewFlipper"

    invoke-virtual {p3, v1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_d

    .line 165
    const/4 v7, 0x1

    .line 166
    new-instance v6, Landroid/widget/ViewFlipper;

    invoke-direct {v6, v2}, Landroid/widget/ViewFlipper;-><init>(Landroid/content/Context;)V

    .restart local v6    # "view":Landroid/view/View;
    goto/16 :goto_1

    .line 167
    .end local v6    # "view":Landroid/view/View;
    :cond_d
    const-string v1, "ViewSwitcher"

    invoke-virtual {p3, v1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_e

    .line 168
    const/4 v7, 0x1

    .line 169
    new-instance v6, Landroid/widget/ViewSwitcher;

    invoke-direct {v6, v2}, Landroid/widget/ViewSwitcher;-><init>(Landroid/content/Context;)V

    .line 170
    .restart local v6    # "view":Landroid/view/View;
    move-object v0, v6

    check-cast v0, Landroid/widget/ViewSwitcher;

    move-object v8, v0

    new-instance v1, Landroid/widget/FrameLayout;

    invoke-direct {v1, v2}, Landroid/widget/FrameLayout;-><init>(Landroid/content/Context;)V

    invoke-virtual {v8, v1}, Landroid/widget/ViewSwitcher;->addView(Landroid/view/View;)V

    .line 171
    move-object v0, v6

    check-cast v0, Landroid/widget/ViewSwitcher;

    move-object v8, v0

    new-instance v1, Landroid/widget/FrameLayout;

    invoke-direct {v1, v2}, Landroid/widget/FrameLayout;-><init>(Landroid/content/Context;)V

    invoke-virtual {v8, v1}, Landroid/widget/ViewSwitcher;->addView(Landroid/view/View;)V

    goto/16 :goto_1

    .line 172
    .end local v6    # "view":Landroid/view/View;
    :cond_e
    const-string v1, "Div"

    invoke-virtual {p3, v1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_f

    .line 173
    const/4 v7, 0x1

    .line 174
    new-instance v6, Lrexsee/core/widget/Div;

    invoke-direct {v6, v2}, Lrexsee/core/widget/Div;-><init>(Landroid/content/Context;)V

    .restart local v6    # "view":Landroid/view/View;
    goto/16 :goto_1

    .line 175
    .end local v6    # "view":Landroid/view/View;
    :cond_f
    const-string v1, "Spinner"

    invoke-virtual {p3, v1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_10

    .line 176
    const/4 v7, 0x1

    .line 177
    new-instance v1, Lrexsee/natives/ViewStyle$3;

    invoke-direct {v1, v2, p0}, Lrexsee/natives/ViewStyle$3;-><init>(Landroid/content/Context;Lrexsee/core/browser/Browser;)V

    .line 200
    .local v1, "spinner":Landroid/widget/Spinner;
    move-object v6, v1

    .restart local v6    # "view":Landroid/view/View;
    goto/16 :goto_1

    .line 201
    .end local v1    # "spinner":Landroid/widget/Spinner;
    .end local v6    # "view":Landroid/view/View;
    :cond_10
    const-string v1, "SlidingDrawer"

    invoke-virtual {p3, v1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_12

    .line 202
    const/4 v7, 0x1

    .line 203
    new-instance v1, Lrexsee/core/style/StyleSheet;

    invoke-virtual {p0}, Lrexsee/core/browser/Browser;->getContext()Landroid/content/Context;

    move-result-object v3

    invoke-direct {v1, v3}, Lrexsee/core/style/StyleSheet;-><init>(Landroid/content/Context;)V

    invoke-virtual {v1, p4}, Lrexsee/core/style/StyleSheet;->parseStyle(Ljava/lang/String;)Lrexsee/core/style/StyleSheet;

    move-result-object v1

    .line 204
    .local v1, "styleSheet":Lrexsee/core/style/StyleSheet;
    iget-object v3, v1, Lrexsee/core/style/StyleSheet;->orientation:Ljava/lang/String;

    const-string v4, "y"

    invoke-virtual {v3, v4}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v3

    if-nez v3, :cond_11

    iget-object v1, v1, Lrexsee/core/style/StyleSheet;->orientation:Ljava/lang/String;

    .end local v1    # "styleSheet":Lrexsee/core/style/StyleSheet;
    const-string v3, "vertical"

    invoke-virtual {v1, v3}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v1

    if-nez v1, :cond_11

    const/4 v1, 0x0

    move v3, v1

    .line 205
    .local v3, "vertical":Z
    :goto_2
    new-instance v1, Lrexsee/natives/widget/SlidingDrawer;

    invoke-direct {v1, v2, v3}, Lrexsee/natives/widget/SlidingDrawer;-><init>(Landroid/content/Context;Z)V

    .line 206
    .local v1, "slidingDrawer":Lrexsee/natives/widget/SlidingDrawer;
    new-instance v3, Lrexsee/natives/ViewStyle$4;

    .end local v3    # "vertical":Z
    invoke-direct {v3, v1, p0}, Lrexsee/natives/ViewStyle$4;-><init>(Lrexsee/natives/widget/SlidingDrawer;Lrexsee/core/browser/Browser;)V

    invoke-virtual {v1, v3}, Lrexsee/natives/widget/SlidingDrawer;->setOnDrawerCloseListener(Lrexsee/natives/widget/SlidingDrawer$OnDrawerCloseListener;)V

    .line 213
    new-instance v3, Lrexsee/natives/ViewStyle$5;

    invoke-direct {v3, v1, p0}, Lrexsee/natives/ViewStyle$5;-><init>(Lrexsee/natives/widget/SlidingDrawer;Lrexsee/core/browser/Browser;)V

    invoke-virtual {v1, v3}, Lrexsee/natives/widget/SlidingDrawer;->setOnDrawerOpenListener(Lrexsee/natives/widget/SlidingDrawer$OnDrawerOpenListener;)V

    .line 220
    new-instance v3, Lrexsee/natives/ViewStyle$6;

    invoke-direct {v3, v1, p0}, Lrexsee/natives/ViewStyle$6;-><init>(Lrexsee/natives/widget/SlidingDrawer;Lrexsee/core/browser/Browser;)V

    invoke-virtual {v1, v3}, Lrexsee/natives/widget/SlidingDrawer;->setOnDrawerScrollListener(Lrexsee/natives/widget/SlidingDrawer$OnDrawerScrollListener;)V

    .line 232
    move-object v6, v1

    .restart local v6    # "view":Landroid/view/View;
    goto/16 :goto_1

    .line 204
    .end local v1    # "slidingDrawer":Lrexsee/natives/widget/SlidingDrawer;
    .end local v6    # "view":Landroid/view/View;
    :cond_11
    const/4 v1, 0x1

    move v3, v1

    goto :goto_2

    .line 233
    :cond_12
    const-string v1, "ListView"

    invoke-virtual {p3, v1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_13

    .line 234
    const/4 v7, 0x1

    .line 235
    new-instance v1, Lrexsee/natives/ViewStyle$7;

    invoke-direct {v1, v2, p0}, Lrexsee/natives/ViewStyle$7;-><init>(Landroid/content/Context;Lrexsee/core/browser/Browser;)V

    .line 257
    .local v1, "listView":Landroid/widget/ListView;
    new-instance v3, Lrexsee/natives/ViewStyle$8;

    invoke-direct {v3, v1, p0}, Lrexsee/natives/ViewStyle$8;-><init>(Landroid/widget/ListView;Lrexsee/core/browser/Browser;)V

    invoke-virtual {v1, v3}, Landroid/widget/ListView;->setOnItemClickListener(Landroid/widget/AdapterView$OnItemClickListener;)V

    .line 264
    new-instance v3, Lrexsee/natives/ViewStyle$9;

    invoke-direct {v3, v1, p0}, Lrexsee/natives/ViewStyle$9;-><init>(Landroid/widget/ListView;Lrexsee/core/browser/Browser;)V

    invoke-virtual {v1, v3}, Landroid/widget/ListView;->setOnItemLongClickListener(Landroid/widget/AdapterView$OnItemLongClickListener;)V

    .line 272
    move-object v6, v1

    .restart local v6    # "view":Landroid/view/View;
    goto/16 :goto_1

    .line 273
    .end local v1    # "listView":Landroid/widget/ListView;
    .end local v6    # "view":Landroid/view/View;
    :cond_13
    const-string v1, "GridView"

    invoke-virtual {p3, v1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_14

    .line 274
    const/4 v7, 0x1

    .line 275
    new-instance v1, Lrexsee/natives/ViewStyle$10;

    invoke-direct {v1, v2, p0}, Lrexsee/natives/ViewStyle$10;-><init>(Landroid/content/Context;Lrexsee/core/browser/Browser;)V

    .line 297
    .local v1, "gridView":Landroid/widget/GridView;
    new-instance v3, Lrexsee/natives/ViewStyle$11;

    invoke-direct {v3, v1, p0}, Lrexsee/natives/ViewStyle$11;-><init>(Landroid/widget/GridView;Lrexsee/core/browser/Browser;)V

    invoke-virtual {v1, v3}, Landroid/widget/GridView;->setOnItemClickListener(Landroid/widget/AdapterView$OnItemClickListener;)V

    .line 304
    new-instance v3, Lrexsee/natives/ViewStyle$12;

    invoke-direct {v3, v1, p0}, Lrexsee/natives/ViewStyle$12;-><init>(Landroid/widget/GridView;Lrexsee/core/browser/Browser;)V

    invoke-virtual {v1, v3}, Landroid/widget/GridView;->setOnItemLongClickListener(Landroid/widget/AdapterView$OnItemLongClickListener;)V

    .line 312
    move-object v6, v1

    .restart local v6    # "view":Landroid/view/View;
    goto/16 :goto_1

    .line 313
    .end local v1    # "gridView":Landroid/widget/GridView;
    .end local v6    # "view":Landroid/view/View;
    :cond_14
    const-string v1, "Gallery"

    invoke-virtual {p3, v1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_15

    .line 314
    const/4 v7, 0x1

    .line 315
    new-instance v1, Lrexsee/natives/ViewStyle$13;

    invoke-direct {v1, v2, p0}, Lrexsee/natives/ViewStyle$13;-><init>(Landroid/content/Context;Lrexsee/core/browser/Browser;)V

    .line 337
    .local v1, "gallery":Landroid/widget/Gallery;
    new-instance v3, Lrexsee/natives/clazz/GalleryOnItemSelectedListener;

    invoke-direct {v3, p0, v1}, Lrexsee/natives/clazz/GalleryOnItemSelectedListener;-><init>(Lrexsee/core/browser/Browser;Landroid/widget/Gallery;)V

    invoke-virtual {v1, v3}, Landroid/widget/Gallery;->setOnItemSelectedListener(Landroid/widget/AdapterView$OnItemSelectedListener;)V

    .line 338
    move-object v6, v1

    .restart local v6    # "view":Landroid/view/View;
    goto/16 :goto_1

    .line 339
    .end local v1    # "gallery":Landroid/widget/Gallery;
    .end local v6    # "view":Landroid/view/View;
    :cond_15
    const-string v1, "ThreeDGallery"

    invoke-virtual {p3, v1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_16

    .line 340
    const/4 v7, 0x1

    .line 341
    new-instance v1, Lrexsee/natives/widget/CustomizedGallery;

    invoke-direct {v1, v2}, Lrexsee/natives/widget/CustomizedGallery;-><init>(Landroid/content/Context;)V

    .line 342
    .local v1, "gallery":Lrexsee/natives/widget/CustomizedGallery;
    new-instance v3, Lrexsee/natives/clazz/GalleryOnItemSelectedListener;

    invoke-direct {v3, p0, v1}, Lrexsee/natives/clazz/GalleryOnItemSelectedListener;-><init>(Lrexsee/core/browser/Browser;Landroid/widget/Gallery;)V

    invoke-virtual {v1, v3}, Lrexsee/natives/widget/CustomizedGallery;->setOnItemSelectedListener(Landroid/widget/AdapterView$OnItemSelectedListener;)V

    .line 343
    move-object v6, v1

    .restart local v6    # "view":Landroid/view/View;
    goto/16 :goto_1

    .line 344
    .end local v1    # "gallery":Lrexsee/natives/widget/CustomizedGallery;
    .end local v6    # "view":Landroid/view/View;
    :cond_16
    const-string v1, "PageView"

    invoke-virtual {p3, v1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_17

    .line 345
    const/4 v7, 0x1

    .line 346
    invoke-static {}, Ljava/lang/System;->gc()V

    .line 347
    new-instance v6, Lrexsee/ebook/PageView;

    invoke-direct {v6, p0, p1, p4}, Lrexsee/ebook/PageView;-><init>(Lrexsee/core/browser/Browser;Ljava/lang/String;Ljava/lang/String;)V

    .restart local v6    # "view":Landroid/view/View;
    goto/16 :goto_1

    .line 351
    .end local v6    # "view":Landroid/view/View;
    :cond_17
    const-string v1, "ImageView"

    invoke-virtual {p3, v1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_18

    new-instance v6, Landroid/widget/ImageView;

    invoke-direct {v6, v2}, Landroid/widget/ImageView;-><init>(Landroid/content/Context;)V

    .restart local v6    # "view":Landroid/view/View;
    goto/16 :goto_1

    .line 352
    .end local v6    # "view":Landroid/view/View;
    :cond_18
    const-string v1, "ImageButton"

    invoke-virtual {p3, v1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_19

    new-instance v6, Landroid/widget/ImageButton;

    invoke-direct {v6, v2}, Landroid/widget/ImageButton;-><init>(Landroid/content/Context;)V

    .restart local v6    # "view":Landroid/view/View;
    goto/16 :goto_1

    .line 353
    .end local v6    # "view":Landroid/view/View;
    :cond_19
    const-string v1, "TextView"

    invoke-virtual {p3, v1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_1a

    new-instance v6, Landroid/widget/TextView;

    invoke-direct {v6, v2}, Landroid/widget/TextView;-><init>(Landroid/content/Context;)V

    .restart local v6    # "view":Landroid/view/View;
    goto/16 :goto_1

    .line 354
    .end local v6    # "view":Landroid/view/View;
    :cond_1a
    const-string v1, "EditText"

    invoke-virtual {p3, v1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_1b

    .line 355
    new-instance v1, Landroid/widget/EditText;

    invoke-direct {v1, v2}, Landroid/widget/EditText;-><init>(Landroid/content/Context;)V

    .line 356
    .local v1, "editText":Landroid/widget/EditText;
    new-instance v3, Lrexsee/natives/ViewStyle$14;

    invoke-direct {v3, v1, p0}, Lrexsee/natives/ViewStyle$14;-><init>(Landroid/widget/EditText;Lrexsee/core/browser/Browser;)V

    invoke-virtual {v1, v3}, Landroid/widget/EditText;->addTextChangedListener(Landroid/text/TextWatcher;)V

    .line 371
    move-object v6, v1

    .restart local v6    # "view":Landroid/view/View;
    goto/16 :goto_1

    .line 372
    .end local v1    # "editText":Landroid/widget/EditText;
    .end local v6    # "view":Landroid/view/View;
    :cond_1b
    const-string v1, "Button"

    invoke-virtual {p3, v1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_1c

    new-instance v6, Landroid/widget/Button;

    invoke-direct {v6, v2}, Landroid/widget/Button;-><init>(Landroid/content/Context;)V

    .restart local v6    # "view":Landroid/view/View;
    goto/16 :goto_1

    .line 373
    .end local v6    # "view":Landroid/view/View;
    :cond_1c
    const-string v1, "ToggleButton"

    invoke-virtual {p3, v1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_1d

    new-instance v6, Landroid/widget/ToggleButton;

    invoke-direct {v6, v2}, Landroid/widget/ToggleButton;-><init>(Landroid/content/Context;)V

    .restart local v6    # "view":Landroid/view/View;
    goto/16 :goto_1

    .line 374
    .end local v6    # "view":Landroid/view/View;
    :cond_1d
    const-string v1, "RadioButton"

    invoke-virtual {p3, v1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_1e

    new-instance v6, Landroid/widget/RadioButton;

    invoke-direct {v6, v2}, Landroid/widget/RadioButton;-><init>(Landroid/content/Context;)V

    .restart local v6    # "view":Landroid/view/View;
    goto/16 :goto_1

    .line 375
    .end local v6    # "view":Landroid/view/View;
    :cond_1e
    const-string v1, "CheckBox"

    invoke-virtual {p3, v1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_1f

    new-instance v6, Landroid/widget/CheckBox;

    invoke-direct {v6, v2}, Landroid/widget/CheckBox;-><init>(Landroid/content/Context;)V

    .restart local v6    # "view":Landroid/view/View;
    goto/16 :goto_1

    .line 376
    .end local v6    # "view":Landroid/view/View;
    :cond_1f
    const-string v1, "DigitalClock"

    invoke-virtual {p3, v1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_20

    new-instance v6, Landroid/widget/DigitalClock;

    invoke-direct {v6, v2}, Landroid/widget/DigitalClock;-><init>(Landroid/content/Context;)V

    .restart local v6    # "view":Landroid/view/View;
    goto/16 :goto_1

    .line 377
    .end local v6    # "view":Landroid/view/View;
    :cond_20
    const-string v1, "AnalogClock"

    invoke-virtual {p3, v1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_21

    new-instance v6, Landroid/widget/AnalogClock;

    invoke-direct {v6, v2}, Landroid/widget/AnalogClock;-><init>(Landroid/content/Context;)V

    .restart local v6    # "view":Landroid/view/View;
    goto/16 :goto_1

    .line 378
    .end local v6    # "view":Landroid/view/View;
    :cond_21
    const-string v1, "WebView"

    invoke-virtual {p3, v1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v1

    if-nez v1, :cond_22

    const-string v1, "Browser"

    invoke-virtual {p3, v1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v1

    if-nez v1, :cond_22

    const-string v1, "BrowserDiv"

    invoke-virtual {p3, v1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_23

    :cond_22
    new-instance v6, Lrexsee/core/browser/BrowserDiv;

    const/4 v1, 0x0

    invoke-direct {v6, v2, p0, v1}, Lrexsee/core/browser/BrowserDiv;-><init>(Landroid/content/Context;Lrexsee/core/browser/Browser;Lrexsee/core/browser/clazz/BrowserParent;)V

    .restart local v6    # "view":Landroid/view/View;
    goto/16 :goto_1

    .line 379
    .end local v6    # "view":Landroid/view/View;
    :cond_23
    const-string v1, "Label"

    invoke-virtual {p3, v1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v1

    if-nez v1, :cond_24

    const-string v1, "LabelDiv"

    invoke-virtual {p3, v1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_25

    :cond_24
    new-instance v6, Lrexsee/core/widget/LabelDiv;

    invoke-direct {v6, v2}, Lrexsee/core/widget/LabelDiv;-><init>(Landroid/content/Context;)V

    .restart local v6    # "view":Landroid/view/View;
    goto/16 :goto_1

    .line 380
    .end local v6    # "view":Landroid/view/View;
    :cond_25
    const-string v1, "Progress"

    invoke-virtual {p3, v1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v1

    if-nez v1, :cond_26

    const-string v1, "ProgressDiv"

    invoke-virtual {p3, v1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_27

    :cond_26
    new-instance v6, Lrexsee/core/widget/ProgressDiv;

    invoke-direct {v6, v2}, Lrexsee/core/widget/ProgressDiv;-><init>(Landroid/content/Context;)V

    .restart local v6    # "view":Landroid/view/View;
    goto/16 :goto_1

    .line 381
    .end local v6    # "view":Landroid/view/View;
    :cond_27
    const-string v1, "ProgressBar"

    invoke-virtual {p3, v1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_29

    .line 382
    new-instance v1, Lrexsee/core/style/StyleSheet;

    invoke-virtual {p0}, Lrexsee/core/browser/Browser;->getContext()Landroid/content/Context;

    move-result-object v3

    invoke-direct {v1, v3}, Lrexsee/core/style/StyleSheet;-><init>(Landroid/content/Context;)V

    invoke-virtual {v1, p4}, Lrexsee/core/style/StyleSheet;->parseStyle(Ljava/lang/String;)Lrexsee/core/style/StyleSheet;

    move-result-object v1

    .line 384
    .local v1, "styleSheet":Lrexsee/core/style/StyleSheet;
    iget-object v1, v1, Lrexsee/core/style/StyleSheet;->mode:Ljava/lang/String;

    .end local v1    # "styleSheet":Lrexsee/core/style/StyleSheet;
    const-string v3, "circular"

    invoke-virtual {v1, v3}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_28

    .line 385
    new-instance v1, Landroid/widget/ProgressBar;

    invoke-direct {v1, v2}, Landroid/widget/ProgressBar;-><init>(Landroid/content/Context;)V

    .line 390
    .local v1, "progressBar":Landroid/widget/ProgressBar;
    :goto_3
    move-object v6, v1

    .restart local v6    # "view":Landroid/view/View;
    goto/16 :goto_1

    .line 387
    .end local v1    # "progressBar":Landroid/widget/ProgressBar;
    .end local v6    # "view":Landroid/view/View;
    :cond_28
    new-instance v1, Landroid/widget/ProgressBar;

    const/4 v3, 0x0

    const v4, 0x1010078

    invoke-direct {v1, v2, v3, v4}, Landroid/widget/ProgressBar;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V

    .line 388
    .restart local v1    # "progressBar":Landroid/widget/ProgressBar;
    const/16 v3, 0x64

    invoke-virtual {v1, v3}, Landroid/widget/ProgressBar;->setMax(I)V

    goto :goto_3

    .line 391
    .end local v1    # "progressBar":Landroid/widget/ProgressBar;
    :cond_29
    const-string v1, "SeekBar"

    invoke-virtual {p3, v1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_2a

    .line 392
    new-instance v1, Landroid/widget/SeekBar;

    invoke-direct {v1, v2}, Landroid/widget/SeekBar;-><init>(Landroid/content/Context;)V

    .line 393
    .local v1, "seekBar":Landroid/widget/SeekBar;
    const/16 v3, 0x64

    invoke-virtual {v1, v3}, Landroid/widget/SeekBar;->setMax(I)V

    .line 394
    new-instance v3, Lrexsee/natives/ViewStyle$15;

    invoke-direct {v3, p0}, Lrexsee/natives/ViewStyle$15;-><init>(Lrexsee/core/browser/Browser;)V

    invoke-virtual {v1, v3}, Landroid/widget/SeekBar;->setOnSeekBarChangeListener(Landroid/widget/SeekBar$OnSeekBarChangeListener;)V

    .line 412
    move-object v6, v1

    .restart local v6    # "view":Landroid/view/View;
    goto/16 :goto_1

    .line 413
    .end local v1    # "seekBar":Landroid/widget/SeekBar;
    .end local v6    # "view":Landroid/view/View;
    :cond_2a
    const-string v1, "RatingBar"

    invoke-virtual {p3, v1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_2b

    .line 414
    new-instance v1, Landroid/widget/RatingBar;

    invoke-direct {v1, v2}, Landroid/widget/RatingBar;-><init>(Landroid/content/Context;)V

    .line 415
    .local v1, "ratingBar":Landroid/widget/RatingBar;
    const/16 v3, 0x64

    invoke-virtual {v1, v3}, Landroid/widget/RatingBar;->setMax(I)V

    .line 416
    const/4 v3, 0x0

    invoke-virtual {v1, v3}, Landroid/widget/RatingBar;->setIsIndicator(Z)V

    .line 417
    new-instance v3, Lrexsee/natives/ViewStyle$16;

    invoke-direct {v3, p0}, Lrexsee/natives/ViewStyle$16;-><init>(Lrexsee/core/browser/Browser;)V

    invoke-virtual {v1, v3}, Landroid/widget/RatingBar;->setOnRatingBarChangeListener(Landroid/widget/RatingBar$OnRatingBarChangeListener;)V

    .line 428
    move-object v6, v1

    .restart local v6    # "view":Landroid/view/View;
    goto/16 :goto_1

    .line 429
    .end local v1    # "ratingBar":Landroid/widget/RatingBar;
    .end local v6    # "view":Landroid/view/View;
    :cond_2b
    const-string v1, "DatePicker"

    invoke-virtual {p3, v1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_2c

    .line 430
    new-instance v1, Landroid/widget/DatePicker;

    invoke-direct {v1, v2}, Landroid/widget/DatePicker;-><init>(Landroid/content/Context;)V

    .line 431
    .local v1, "datePicker":Landroid/widget/DatePicker;
    invoke-static {}, Ljava/util/Calendar;->getInstance()Ljava/util/Calendar;

    move-result-object v3

    .line 432
    .local v3, "rightNow":Ljava/util/Calendar;
    const/4 v4, 0x1

    invoke-virtual {v3, v4}, Ljava/util/Calendar;->get(I)I

    move-result v4

    const/4 v5, 0x2

    invoke-virtual {v3, v5}, Ljava/util/Calendar;->get(I)I

    move-result v5

    const/4 v6, 0x5

    invoke-virtual {v3, v6}, Ljava/util/Calendar;->get(I)I

    move-result v3

    .end local v3    # "rightNow":Ljava/util/Calendar;
    new-instance v6, Lrexsee/natives/ViewStyle$17;

    invoke-direct {v6, p0}, Lrexsee/natives/ViewStyle$17;-><init>(Lrexsee/core/browser/Browser;)V

    invoke-virtual {v1, v4, v5, v3, v6}, Landroid/widget/DatePicker;->init(IIILandroid/widget/DatePicker$OnDateChangedListener;)V

    .line 441
    move-object v6, v1

    .restart local v6    # "view":Landroid/view/View;
    goto/16 :goto_1

    .line 442
    .end local v1    # "datePicker":Landroid/widget/DatePicker;
    .end local v6    # "view":Landroid/view/View;
    :cond_2c
    const-string v1, "TimePicker"

    invoke-virtual {p3, v1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_2d

    .line 443
    new-instance v3, Landroid/widget/TimePicker;

    invoke-direct {v3, v2}, Landroid/widget/TimePicker;-><init>(Landroid/content/Context;)V

    .line 444
    .local v3, "timePicker":Landroid/widget/TimePicker;
    invoke-static {}, Ljava/util/Calendar;->getInstance()Ljava/util/Calendar;

    move-result-object v1

    .line 445
    .local v1, "rightNow":Ljava/util/Calendar;
    const/16 v4, 0xb

    invoke-virtual {v1, v4}, Ljava/util/Calendar;->get(I)I

    move-result v4

    invoke-static {v4}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v4

    invoke-virtual {v3, v4}, Landroid/widget/TimePicker;->setCurrentHour(Ljava/lang/Integer;)V

    .line 446
    const/16 v4, 0xc

    invoke-virtual {v1, v4}, Ljava/util/Calendar;->get(I)I

    move-result v1

    .end local v1    # "rightNow":Ljava/util/Calendar;
    invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v1

    invoke-virtual {v3, v1}, Landroid/widget/TimePicker;->setCurrentMinute(Ljava/lang/Integer;)V

    .line 447
    const/4 v1, 0x1

    invoke-static {v1}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v1

    invoke-virtual {v3, v1}, Landroid/widget/TimePicker;->setIs24HourView(Ljava/lang/Boolean;)V

    .line 448
    new-instance v1, Lrexsee/natives/ViewStyle$18;

    invoke-direct {v1, p0}, Lrexsee/natives/ViewStyle$18;-><init>(Lrexsee/core/browser/Browser;)V

    invoke-virtual {v3, v1}, Landroid/widget/TimePicker;->setOnTimeChangedListener(Landroid/widget/TimePicker$OnTimeChangedListener;)V

    .line 457
    move-object v6, v3

    .restart local v6    # "view":Landroid/view/View;
    goto/16 :goto_1

    .line 458
    .end local v3    # "timePicker":Landroid/widget/TimePicker;
    .end local v6    # "view":Landroid/view/View;
    :cond_2d
    const-string v1, "ZoomControls"

    invoke-virtual {p3, v1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_2e

    .line 459
    new-instance v1, Landroid/widget/ZoomControls;

    invoke-direct {v1, v2}, Landroid/widget/ZoomControls;-><init>(Landroid/content/Context;)V

    .line 460
    .local v1, "zoomControls":Landroid/widget/ZoomControls;
    new-instance v3, Lrexsee/natives/ViewStyle$19;

    invoke-direct {v3, v1, p0}, Lrexsee/natives/ViewStyle$19;-><init>(Landroid/widget/ZoomControls;Lrexsee/core/browser/Browser;)V

    invoke-virtual {v1, v3}, Landroid/widget/ZoomControls;->setOnZoomInClickListener(Landroid/view/View$OnClickListener;)V

    .line 469
    new-instance v3, Lrexsee/natives/ViewStyle$20;

    invoke-direct {v3, v1, p0}, Lrexsee/natives/ViewStyle$20;-><init>(Landroid/widget/ZoomControls;Lrexsee/core/browser/Browser;)V

    invoke-virtual {v1, v3}, Landroid/widget/ZoomControls;->setOnZoomOutClickListener(Landroid/view/View$OnClickListener;)V

    .line 478
    move-object v6, v1

    .restart local v6    # "view":Landroid/view/View;
    goto/16 :goto_1

    .line 479
    .end local v1    # "zoomControls":Landroid/widget/ZoomControls;
    .end local v6    # "view":Landroid/view/View;
    :cond_2e
    const-string v1, "VideoView"

    invoke-virtual {p3, v1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_2f

    .line 480
    new-instance v6, Lrexsee/multimedia/VideoView;

    const-string v1, ""

    const/4 v3, 0x1

    invoke-direct {v6, p0, p1, v1, v3}, Lrexsee/multimedia/VideoView;-><init>(Lrexsee/core/browser/Browser;Ljava/lang/String;Ljava/lang/String;Z)V

    .restart local v6    # "view":Landroid/view/View;
    goto/16 :goto_1

    .line 481
    .end local v6    # "view":Landroid/view/View;
    :cond_2f
    const-string v1, "ImageSwitcher"

    invoke-virtual {p3, v1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_30

    .line 482
    new-instance v6, Landroid/widget/ImageSwitcher;

    invoke-direct {v6, v2}, Landroid/widget/ImageSwitcher;-><init>(Landroid/content/Context;)V

    .line 483
    .restart local v6    # "view":Landroid/view/View;
    move-object v0, v6

    check-cast v0, Landroid/widget/ImageSwitcher;

    move-object v8, v0

    new-instance v1, Landroid/widget/ImageView;

    invoke-direct {v1, v2}, Landroid/widget/ImageView;-><init>(Landroid/content/Context;)V

    invoke-virtual {v8, v1}, Landroid/widget/ImageSwitcher;->addView(Landroid/view/View;)V

    .line 484
    move-object v0, v6

    check-cast v0, Landroid/widget/ImageSwitcher;

    move-object v8, v0

    new-instance v1, Landroid/widget/ImageView;

    invoke-direct {v1, v2}, Landroid/widget/ImageView;-><init>(Landroid/content/Context;)V

    invoke-virtual {v8, v1}, Landroid/widget/ImageSwitcher;->addView(Landroid/view/View;)V

    goto/16 :goto_1

    .line 485
    .end local v6    # "view":Landroid/view/View;
    :cond_30
    const-string v1, "TextSwitcher"

    invoke-virtual {p3, v1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_31

    .line 486
    new-instance v6, Landroid/widget/TextSwitcher;

    invoke-direct {v6, v2}, Landroid/widget/TextSwitcher;-><init>(Landroid/content/Context;)V

    .line 487
    .restart local v6    # "view":Landroid/view/View;
    move-object v0, v6

    check-cast v0, Landroid/widget/TextSwitcher;

    move-object v8, v0

    new-instance v1, Landroid/widget/TextView;

    invoke-direct {v1, v2}, Landroid/widget/TextView;-><init>(Landroid/content/Context;)V

    invoke-virtual {v8, v1}, Landroid/widget/TextSwitcher;->addView(Landroid/view/View;)V

    .line 488
    move-object v0, v6

    check-cast v0, Landroid/widget/TextSwitcher;

    move-object v8, v0

    new-instance v1, Landroid/widget/TextView;

    invoke-direct {v1, v2}, Landroid/widget/TextView;-><init>(Landroid/content/Context;)V

    invoke-virtual {v8, v1}, Landroid/widget/TextSwitcher;->addView(Landroid/view/View;)V

    goto/16 :goto_1

    .line 489
    .end local v6    # "view":Landroid/view/View;
    :cond_31
    const-string v1, "SurfaceView"

    invoke-virtual {p3, v1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_32

    .line 490
    new-instance v3, Landroid/view/SurfaceView;

    invoke-direct {v3, v2}, Landroid/view/SurfaceView;-><init>(Landroid/content/Context;)V

    .line 491
    .local v3, "surfaceView":Landroid/view/SurfaceView;
    invoke-virtual {v3}, Landroid/view/SurfaceView;->getHolder()Landroid/view/SurfaceHolder;

    move-result-object v1

    .line 492
    .local v1, "holder":Landroid/view/SurfaceHolder;
    new-instance v4, Lrexsee/natives/ViewStyle$21;

    invoke-direct {v4, v3, p0}, Lrexsee/natives/ViewStyle$21;-><init>(Landroid/view/SurfaceView;Lrexsee/core/browser/Browser;)V

    invoke-interface {v1, v4}, Landroid/view/SurfaceHolder;->addCallback(Landroid/view/SurfaceHolder$Callback;)V

    .line 512
    const/4 v4, -0x1

    const/4 v5, -0x1

    invoke-interface {v1, v4, v5}, Landroid/view/SurfaceHolder;->setFixedSize(II)V

    .line 513
    const/4 v4, -0x3

    invoke-interface {v1, v4}, Landroid/view/SurfaceHolder;->setFormat(I)V

    .line 514
    const/4 v1, 0x0

    invoke-virtual {v3, v1}, Landroid/view/SurfaceView;->setBackgroundColor(I)V

    .line 515
    .end local v1    # "holder":Landroid/view/SurfaceHolder;
    const/4 v1, 0x1

    invoke-virtual {v3, v1}, Landroid/view/SurfaceView;->setZOrderOnTop(Z)V

    .line 516
    move-object v6, v3

    .restart local v6    # "view":Landroid/view/View;
    goto/16 :goto_1

    .line 517
    .end local v3    # "surfaceView":Landroid/view/SurfaceView;
    .end local v6    # "view":Landroid/view/View;
    :cond_32
    const-string v1, "Chronometer"

    invoke-virtual {p3, v1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_33

    .line 518
    new-instance v1, Landroid/widget/Chronometer;

    invoke-direct {v1, v2}, Landroid/widget/Chronometer;-><init>(Landroid/content/Context;)V

    .line 519
    .local v1, "meter":Landroid/widget/Chronometer;
    new-instance v3, Lrexsee/natives/ViewStyle$22;

    invoke-direct {v3, p0}, Lrexsee/natives/ViewStyle$22;-><init>(Lrexsee/core/browser/Browser;)V

    invoke-virtual {v1, v3}, Landroid/widget/Chronometer;->setOnChronometerTickListener(Landroid/widget/Chronometer$OnChronometerTickListener;)V

    .line 526
    move-object v6, v1

    .restart local v6    # "view":Landroid/view/View;
    goto/16 :goto_1

    .line 533
    .end local v1    # "meter":Landroid/widget/Chronometer;
    .end local v6    # "view":Landroid/view/View;
    :cond_33
    const/4 p0, 0x0

    goto/16 :goto_0

    .line 548
    .end local p1    # "id":Ljava/lang/String;
    .restart local v6    # "view":Landroid/view/View;
    :catch_0
    move-exception p1

    .line 549
    .local p1, "e":Ljava/lang/Exception;
    const-string p2, "Native-view Creation"

    .end local p2    # "uniqueId":I
    invoke-virtual {p0, p2, p1}, Lrexsee/core/browser/Browser;->exception(Ljava/lang/String;Ljava/lang/Exception;)V

    .line 550
    const/4 p0, 0x0

    goto/16 :goto_0
.end method

.method public static getRelativeLayoutParams(Lrexsee/natives/RexseeJavaView;IILjava/lang/String;Ljava/lang/String;)Landroid/widget/RelativeLayout$LayoutParams;
    .locals 10
    .param p0, "javaView"    # Lrexsee/natives/RexseeJavaView;
    .param p1, "width"    # I
    .param p2, "height"    # I
    .param p3, "left"    # Ljava/lang/String;
    .param p4, "top"    # Ljava/lang/String;

    .prologue
    const/4 v7, 0x2

    const/4 v6, 0x1

    const/4 v5, 0x0

    const-string v9, "center"

    const-string v8, "\\/"

    .line 1064
    new-instance v0, Landroid/widget/RelativeLayout$LayoutParams;

    invoke-direct {v0, p1, p2}, Landroid/widget/RelativeLayout$LayoutParams;-><init>(II)V

    .line 1066
    .local v0, "layoutParams":Landroid/widget/RelativeLayout$LayoutParams;
    const-string v3, "\\/"

    invoke-virtual {p3, v8}, Ljava/lang/String;->split(Ljava/lang/String;)[Ljava/lang/String;

    move-result-object v1

    .line 1067
    .local v1, "verbLeft":[Ljava/lang/String;
    aget-object v3, v1, v5

    const-string v4, "left"

    invoke-virtual {v3, v4}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v3

    if-eqz v3, :cond_2

    .line 1068
    const/16 v3, 0x9

    invoke-virtual {v0, v3}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(I)V

    .line 1083
    :cond_0
    :goto_0
    const-string v3, "\\/"

    invoke-virtual {p4, v8}, Ljava/lang/String;->split(Ljava/lang/String;)[Ljava/lang/String;

    move-result-object v2

    .line 1084
    .local v2, "verbTop":[Ljava/lang/String;
    aget-object v3, v2, v5

    const-string v4, "top"

    invoke-virtual {v3, v4}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v3

    if-eqz v3, :cond_9

    .line 1085
    const/16 v3, 0xa

    invoke-virtual {v0, v3}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(I)V

    .line 1100
    :cond_1
    :goto_1
    return-object v0

    .line 1069
    .end local v2    # "verbTop":[Ljava/lang/String;
    :cond_2
    aget-object v3, v1, v5

    const-string v4, "right"

    invoke-virtual {v3, v4}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v3

    if-eqz v3, :cond_3

    .line 1070
    const/16 v3, 0xb

    invoke-virtual {v0, v3}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(I)V

    goto :goto_0

    .line 1071
    :cond_3
    aget-object v3, v1, v5

    const-string v4, "center"

    invoke-virtual {v3, v9}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v3

    if-nez v3, :cond_4

    aget-object v3, v1, v5

    const-string v4, "middle"

    invoke-virtual {v3, v4}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v3

    if-eqz v3, :cond_5

    .line 1072
    :cond_4
    const/16 v3, 0xe

    invoke-virtual {v0, v3}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(I)V

    goto :goto_0

    .line 1073
    :cond_5
    aget-object v3, v1, v5

    const-string v4, "leftof"

    invoke-virtual {v3, v4}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v3

    if-eqz v3, :cond_6

    .line 1074
    array-length v3, v1

    if-lt v3, v7, :cond_0

    aget-object v3, v1, v6

    if-eqz v3, :cond_0

    aget-object v3, v1, v6

    invoke-virtual {p0, v3}, Lrexsee/natives/RexseeJavaView;->getViewUniqueId(Ljava/lang/String;)I

    move-result v3

    invoke-virtual {v0, v5, v3}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(II)V

    goto :goto_0

    .line 1075
    :cond_6
    aget-object v3, v1, v5

    const-string v4, "rightof"

    invoke-virtual {v3, v4}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v3

    if-eqz v3, :cond_7

    .line 1076
    array-length v3, v1

    if-lt v3, v7, :cond_0

    aget-object v3, v1, v6

    if-eqz v3, :cond_0

    aget-object v3, v1, v6

    invoke-virtual {p0, v3}, Lrexsee/natives/RexseeJavaView;->getViewUniqueId(Ljava/lang/String;)I

    move-result v3

    invoke-virtual {v0, v6, v3}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(II)V

    goto :goto_0

    .line 1077
    :cond_7
    aget-object v3, v1, v5

    const-string v4, "alignleftof"

    invoke-virtual {v3, v4}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v3

    if-eqz v3, :cond_8

    .line 1078
    array-length v3, v1

    if-lt v3, v7, :cond_0

    aget-object v3, v1, v6

    if-eqz v3, :cond_0

    const/4 v3, 0x5

    aget-object v4, v1, v6

    invoke-virtual {p0, v4}, Lrexsee/natives/RexseeJavaView;->getViewUniqueId(Ljava/lang/String;)I

    move-result v4

    invoke-virtual {v0, v3, v4}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(II)V

    goto/16 :goto_0

    .line 1079
    :cond_8
    aget-object v3, v1, v5

    const-string v4, "alignrightof"

    invoke-virtual {v3, v4}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v3

    if-eqz v3, :cond_0

    .line 1080
    array-length v3, v1

    if-lt v3, v7, :cond_0

    aget-object v3, v1, v6

    if-eqz v3, :cond_0

    const/4 v3, 0x7

    aget-object v4, v1, v6

    invoke-virtual {p0, v4}, Lrexsee/natives/RexseeJavaView;->getViewUniqueId(Ljava/lang/String;)I

    move-result v4

    invoke-virtual {v0, v3, v4}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(II)V

    goto/16 :goto_0

    .line 1086
    .restart local v2    # "verbTop":[Ljava/lang/String;
    :cond_9
    aget-object v3, v2, v5

    const-string v4, "bottom"

    invoke-virtual {v3, v4}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v3

    if-eqz v3, :cond_a

    .line 1087
    const/16 v3, 0xc

    invoke-virtual {v0, v3}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(I)V

    goto/16 :goto_1

    .line 1088
    :cond_a
    aget-object v3, v2, v5

    const-string v4, "center"

    invoke-virtual {v3, v9}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v3

    if-nez v3, :cond_b

    aget-object v3, v2, v5

    const-string v4, "middle"

    invoke-virtual {v3, v4}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v3

    if-eqz v3, :cond_c

    .line 1089
    :cond_b
    const/16 v3, 0xf

    invoke-virtual {v0, v3}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(I)V

    goto/16 :goto_1

    .line 1090
    :cond_c
    aget-object v3, v2, v5

    const-string v4, "topof"

    invoke-virtual {v3, v4}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v3

    if-eqz v3, :cond_d

    .line 1091
    array-length v3, v2

    if-lt v3, v7, :cond_1

    aget-object v3, v2, v6

    if-eqz v3, :cond_1

    aget-object v3, v2, v6

    invoke-virtual {p0, v3}, Lrexsee/natives/RexseeJavaView;->getViewUniqueId(Ljava/lang/String;)I

    move-result v3

    invoke-virtual {v0, v7, v3}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(II)V

    goto/16 :goto_1

    .line 1092
    :cond_d
    aget-object v3, v2, v5

    const-string v4, "bottomof"

    invoke-virtual {v3, v4}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v3

    if-eqz v3, :cond_e

    .line 1093
    array-length v3, v2

    if-lt v3, v7, :cond_1

    aget-object v3, v2, v6

    if-eqz v3, :cond_1

    const/4 v3, 0x3

    aget-object v4, v2, v6

    invoke-virtual {p0, v4}, Lrexsee/natives/RexseeJavaView;->getViewUniqueId(Ljava/lang/String;)I

    move-result v4

    invoke-virtual {v0, v3, v4}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(II)V

    goto/16 :goto_1

    .line 1094
    :cond_e
    aget-object v3, v2, v5

    const-string v4, "aligntopof"

    invoke-virtual {v3, v4}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v3

    if-eqz v3, :cond_f

    .line 1095
    array-length v3, v2

    if-lt v3, v7, :cond_1

    aget-object v3, v2, v6

    if-eqz v3, :cond_1

    const/4 v3, 0x6

    aget-object v4, v2, v6

    invoke-virtual {p0, v4}, Lrexsee/natives/RexseeJavaView;->getViewUniqueId(Ljava/lang/String;)I

    move-result v4

    invoke-virtual {v0, v3, v4}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(II)V

    goto/16 :goto_1

    .line 1096
    :cond_f
    aget-object v3, v2, v5

    const-string v4, "alignbottomof"

    invoke-virtual {v3, v4}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v3

    if-eqz v3, :cond_1

    .line 1097
    array-length v3, v2

    if-lt v3, v7, :cond_1

    aget-object v3, v2, v6

    if-eqz v3, :cond_1

    const/16 v3, 0x8

    aget-object v4, v2, v6

    invoke-virtual {p0, v4}, Lrexsee/natives/RexseeJavaView;->getViewUniqueId(Ljava/lang/String;)I

    move-result v4

    invoke-virtual {v0, v3, v4}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(II)V

    goto/16 :goto_1
.end method

.method public static setEditTextStyle(Lrexsee/core/browser/Browser;Landroid/widget/EditText;Lrexsee/core/style/StyleSheet;)V
    .locals 7
    .param p0, "browser"    # Lrexsee/core/browser/Browser;
    .param p1, "editText"    # Landroid/widget/EditText;
    .param p2, "style"    # Lrexsee/core/style/StyleSheet;

    .prologue
    const/4 v6, 0x1

    const/4 v5, 0x0

    .line 930
    :try_start_0
    iget-object v3, p2, Lrexsee/core/style/StyleSheet;->selectall:Ljava/lang/String;

    const-string v4, "true"

    invoke-virtual {v3, v4}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v3

    if-eqz v3, :cond_0

    const/4 v3, 0x1

    invoke-virtual {p1, v3}, Landroid/widget/EditText;->setSelectAllOnFocus(Z)V

    .line 931
    :cond_0
    iget-object v3, p2, Lrexsee/core/style/StyleSheet;->maxlength:Ljava/lang/String;

    const/4 v4, 0x0

    invoke-static {v3, v4}, Lrexsee/core/utilities/Utilities;->getInt(Ljava/lang/String;I)I

    move-result v2

    .line 932
    .local v2, "maxLength":I
    if-lez v2, :cond_1

    .line 933
    const/4 v3, 0x1

    new-array v1, v3, [Landroid/text/InputFilter;

    .line 934
    .local v1, "filter":[Landroid/text/InputFilter;
    const/4 v3, 0x0

    new-instance v4, Landroid/text/InputFilter$LengthFilter;

    invoke-direct {v4, v2}, Landroid/text/InputFilter$LengthFilter;-><init>(I)V

    aput-object v4, v1, v3

    .line 935
    invoke-virtual {p1, v1}, Landroid/widget/EditText;->setFilters([Landroid/text/InputFilter;)V

    .line 937
    .end local v1    # "filter":[Landroid/text/InputFilter;
    :cond_1
    iget-object v3, p2, Lrexsee/core/style/StyleSheet;->format:Ljava/lang/String;

    invoke-static {v3}, Lrexsee/core/browser/clazz/PromptArgumentsSheet;->getInputType(Ljava/lang/String;)I

    move-result v3

    invoke-virtual {p1, v3}, Landroid/widget/EditText;->setInputType(I)V

    .line 938
    iget-object v3, p2, Lrexsee/core/style/StyleSheet;->hint_color:Ljava/lang/String;

    invoke-static {v3}, Landroid/graphics/Color;->parseColor(Ljava/lang/String;)I

    move-result v3

    invoke-virtual {p1, v3}, Landroid/widget/EditText;->setHintTextColor(I)V

    .line 939
    iget-object v3, p2, Lrexsee/core/style/StyleSheet;->hint:Ljava/lang/String;

    invoke-virtual {p1, v3}, Landroid/widget/EditText;->setHint(Ljava/lang/CharSequence;)V

    .line 940
    iget-object v3, p2, Lrexsee/core/style/StyleSheet;->white_space:Ljava/lang/String;

    const-string v4, "nowrap"

    invoke-virtual {v3, v4}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v3

    if-eqz v3, :cond_2

    move v3, v6

    :goto_0
    invoke-virtual {p1, v3}, Landroid/widget/EditText;->setSingleLine(Z)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    .line 944
    .end local v2    # "maxLength":I
    :goto_1
    return-void

    .restart local v2    # "maxLength":I
    :cond_2
    move v3, v5

    .line 940
    goto :goto_0

    .line 941
    .end local v2    # "maxLength":I
    :catch_0
    move-exception v3

    move-object v0, v3

    .line 942
    .local v0, "e":Ljava/lang/Exception;
    const-string v3, "SetStyle/EditText:"

    invoke-virtual {p0, v3, v0}, Lrexsee/core/browser/Browser;->exception(Ljava/lang/String;Ljava/lang/Exception;)V

    goto :goto_1
.end method

.method public static setImageViewStyle(Lrexsee/core/browser/Browser;Landroid/widget/ImageView;Lrexsee/core/style/StyleSheet;)V
    .locals 9
    .param p0, "browser"    # Lrexsee/core/browser/Browser;
    .param p1, "imageView"    # Landroid/widget/ImageView;
    .param p2, "style"    # Lrexsee/core/style/StyleSheet;

    .prologue
    const-string v5, "true"

    .line 947
    :try_start_0
    invoke-virtual {p2}, Lrexsee/core/style/StyleSheet;->getIconPaddingLeft()I

    move-result v5

    invoke-virtual {p2}, Lrexsee/core/style/StyleSheet;->getIconPaddingTop()I

    move-result v6

    invoke-virtual {p2}, Lrexsee/core/style/StyleSheet;->getIconPaddingRight()I

    move-result v7

    invoke-virtual {p2}, Lrexsee/core/style/StyleSheet;->getIconPaddingBottom()I

    move-result v8

    invoke-virtual {p1, v5, v6, v7, v8}, Landroid/widget/ImageView;->setPadding(IIII)V

    .line 948
    iget-object v5, p2, Lrexsee/core/style/StyleSheet;->icon_background_color:Ljava/lang/String;

    const/4 v6, 0x0

    invoke-static {p0, v5, v6}, Lrexsee/core/style/RexseeDrawable;->getDrawable(Lrexsee/core/browser/Browser;Ljava/lang/String;Landroid/graphics/drawable/Drawable;)Landroid/graphics/drawable/Drawable;

    move-result-object v0

    .line 949
    .local v0, "bg":Landroid/graphics/drawable/Drawable;
    if-eqz v0, :cond_0

    invoke-virtual {p1, v0}, Landroid/widget/ImageView;->setBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V

    .line 950
    :cond_0
    iget-object v5, p2, Lrexsee/core/style/StyleSheet;->icon_url:Ljava/lang/String;

    const/4 v6, 0x0

    invoke-static {p0, v5, v6}, Lrexsee/core/style/RexseeDrawable;->getDrawable(Lrexsee/core/browser/Browser;Ljava/lang/String;Landroid/graphics/drawable/Drawable;)Landroid/graphics/drawable/Drawable;

    move-result-object v2

    .line 951
    .local v2, "icon":Landroid/graphics/drawable/Drawable;
    if-eqz v2, :cond_1

    invoke-virtual {p1, v2}, Landroid/widget/ImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V

    .line 952
    :cond_1
    invoke-virtual {p2}, Lrexsee/core/style/StyleSheet;->getIconAlpha()I

    move-result v5

    invoke-virtual {p1, v5}, Landroid/widget/ImageView;->setAlpha(I)V

    .line 953
    invoke-virtual {p2}, Lrexsee/core/style/StyleSheet;->getIconScaleType()Landroid/widget/ImageView$ScaleType;

    move-result-object v5

    invoke-virtual {p1, v5}, Landroid/widget/ImageView;->setScaleType(Landroid/widget/ImageView$ScaleType;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_1

    .line 955
    :try_start_1
    invoke-virtual {p1}, Landroid/widget/ImageView;->getTag()Ljava/lang/Object;

    move-result-object v4

    check-cast v4, Lrexsee/natives/ViewTag;

    .line 956
    .local v4, "viewTag":Lrexsee/natives/ViewTag;
    iget-object v5, p2, Lrexsee/core/style/StyleSheet;->event_touch:Ljava/lang/String;

    const-string v6, "true"

    invoke-virtual {v5, v6}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v5

    if-eqz v5, :cond_4

    iget-boolean v5, v4, Lrexsee/natives/ViewTag;->touchEvent:Z

    if-nez v5, :cond_4

    .line 957
    const/4 v5, 0x1

    iput-boolean v5, v4, Lrexsee/natives/ViewTag;->touchEvent:Z

    .line 958
    const/4 v5, 0x1

    invoke-virtual {p1, v5}, Landroid/widget/ImageView;->setClickable(Z)V

    .line 959
    iget-object v5, p2, Lrexsee/core/style/StyleSheet;->event_multitouch:Ljava/lang/String;

    const-string v6, "true"

    invoke-virtual {v5, v6}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v5

    if-eqz v5, :cond_3

    .line 960
    sget-object v5, Landroid/widget/ImageView$ScaleType;->CENTER_INSIDE:Landroid/widget/ImageView$ScaleType;

    invoke-virtual {p1, v5}, Landroid/widget/ImageView;->setScaleType(Landroid/widget/ImageView$ScaleType;)V

    .line 961
    new-instance v3, Lrexsee/dialog/ImageMultiTouchListener;

    iget-object v5, p2, Lrexsee/core/style/StyleSheet;->distance_threshold:Ljava/lang/String;

    const/4 v6, 0x0

    invoke-static {v5, v6}, Lrexsee/core/utilities/Utilities;->getInt(Ljava/lang/String;I)I

    move-result v5

    new-instance v6, Lrexsee/natives/ViewStyle$24;

    invoke-direct {v6, p0, v4}, Lrexsee/natives/ViewStyle$24;-><init>(Lrexsee/core/browser/Browser;Lrexsee/natives/ViewTag;)V

    invoke-direct {v3, p1, v5, v6}, Lrexsee/dialog/ImageMultiTouchListener;-><init>(Landroid/widget/ImageView;ILrexsee/dialog/ImageMultiTouchListener$OnImageDragedOverThresholdListener;)V

    .line 985
    .local v3, "multiTouchListener":Lrexsee/dialog/ImageMultiTouchListener;
    new-instance v5, Lrexsee/natives/clazz/ViewOnTouchListener;

    iget-object v6, v4, Lrexsee/natives/ViewTag;->id:Ljava/lang/String;

    iget-object v7, p2, Lrexsee/core/style/StyleSheet;->event_touchmove:Ljava/lang/String;

    const-string v8, "true"

    invoke-virtual {v7, v8}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v7

    invoke-direct {v5, p0, v6, v7, v3}, Lrexsee/natives/clazz/ViewOnTouchListener;-><init>(Lrexsee/core/browser/Browser;Ljava/lang/String;ZLrexsee/dialog/ImageMultiTouchListener;)V

    invoke-virtual {p1, v5}, Landroid/widget/ImageView;->setOnTouchListener(Landroid/view/View$OnTouchListener;)V

    .line 1000
    .end local v0    # "bg":Landroid/graphics/drawable/Drawable;
    .end local v2    # "icon":Landroid/graphics/drawable/Drawable;
    .end local v3    # "multiTouchListener":Lrexsee/dialog/ImageMultiTouchListener;
    .end local v4    # "viewTag":Lrexsee/natives/ViewTag;
    :cond_2
    :goto_0
    return-void

    .line 987
    .restart local v0    # "bg":Landroid/graphics/drawable/Drawable;
    .restart local v2    # "icon":Landroid/graphics/drawable/Drawable;
    .restart local v4    # "viewTag":Lrexsee/natives/ViewTag;
    :cond_3
    new-instance v5, Lrexsee/natives/clazz/ViewOnTouchListener;

    iget-object v6, v4, Lrexsee/natives/ViewTag;->id:Ljava/lang/String;

    iget-object v7, p2, Lrexsee/core/style/StyleSheet;->event_touchmove:Ljava/lang/String;

    const-string v8, "true"

    invoke-virtual {v7, v8}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v7

    const/4 v8, 0x0

    invoke-direct {v5, p0, v6, v7, v8}, Lrexsee/natives/clazz/ViewOnTouchListener;-><init>(Lrexsee/core/browser/Browser;Ljava/lang/String;ZLrexsee/dialog/ImageMultiTouchListener;)V

    invoke-virtual {p1, v5}, Landroid/widget/ImageView;->setOnTouchListener(Landroid/view/View$OnTouchListener;)V

    goto :goto_0

    .line 994
    .end local v4    # "viewTag":Lrexsee/natives/ViewTag;
    :catch_0
    move-exception v5

    goto :goto_0

    .line 989
    .restart local v4    # "viewTag":Lrexsee/natives/ViewTag;
    :cond_4
    iget-object v5, p2, Lrexsee/core/style/StyleSheet;->event_touch:Ljava/lang/String;

    const-string v6, "false"

    invoke-virtual {v5, v6}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v5

    if-eqz v5, :cond_2

    iget-boolean v5, v4, Lrexsee/natives/ViewTag;->touchEvent:Z

    if-eqz v5, :cond_2

    .line 990
    const/4 v5, 0x1

    iput-boolean v5, v4, Lrexsee/natives/ViewTag;->touchEvent:Z

    .line 991
    const/4 v5, 0x0

    invoke-virtual {p1, v5}, Landroid/widget/ImageView;->setClickable(Z)V

    .line 992
    const/4 v5, 0x0

    invoke-virtual {p1, v5}, Landroid/widget/ImageView;->setOnTouchListener(Landroid/view/View$OnTouchListener;)V
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0

    goto :goto_0

    .line 997
    .end local v0    # "bg":Landroid/graphics/drawable/Drawable;
    .end local v2    # "icon":Landroid/graphics/drawable/Drawable;
    .end local v4    # "viewTag":Lrexsee/natives/ViewTag;
    :catch_1
    move-exception v5

    move-object v1, v5

    .line 998
    .local v1, "e":Ljava/lang/Exception;
    const-string v5, "SetStyle/ImageView"

    invoke-virtual {p0, v5, v1}, Lrexsee/core/browser/Browser;->exception(Ljava/lang/String;Ljava/lang/Exception;)V

    goto :goto_0
.end method

.method public static setStyle(Lrexsee/core/browser/Browser;Lrexsee/natives/ViewTag;Ljava/lang/String;Lrexsee/natives/RexseeJavaView;)V
    .locals 4
    .param p0, "browser"    # Lrexsee/core/browser/Browser;
    .param p1, "viewTag"    # Lrexsee/natives/ViewTag;
    .param p2, "style"    # Ljava/lang/String;
    .param p3, "javaView"    # Lrexsee/natives/RexseeJavaView;

    .prologue
    .line 557
    iget-object v0, p1, Lrexsee/natives/ViewTag;->type:Ljava/lang/String;

    const-string v1, "Button"

    invoke-virtual {v0, v1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_22

    new-instance v0, Ljava/lang/StringBuilder;

    const-string v1, "min-height:24;width:wrapcontent;height:wrapcontent;label-padding:0 20 2 20;label-background-color:default;background-color:default;color:#000000;"

    invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v0, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object p2

    .end local p2    # "style":Ljava/lang/String;
    invoke-virtual {p2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p2

    .line 576
    .restart local p2    # "style":Ljava/lang/String;
    :cond_0
    :goto_0
    iget-object v0, p1, Lrexsee/natives/ViewTag;->style:Lrexsee/core/style/StyleSheet;

    invoke-virtual {v0, p2}, Lrexsee/core/style/StyleSheet;->parseStyle(Ljava/lang/String;)Lrexsee/core/style/StyleSheet;

    .line 578
    iget-object v0, p1, Lrexsee/natives/ViewTag;->type:Ljava/lang/String;

    const-string v1, "WebView"

    invoke-virtual {v0, v1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v0

    if-nez v0, :cond_1

    iget-object v0, p1, Lrexsee/natives/ViewTag;->type:Ljava/lang/String;

    const-string v1, "Browser"

    invoke-virtual {v0, v1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v0

    if-nez v0, :cond_1

    iget-object v0, p1, Lrexsee/natives/ViewTag;->type:Ljava/lang/String;

    const-string v1, "BrowserDiv"

    invoke-virtual {v0, v1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_34

    .line 579
    :cond_1
    iget-object v0, p1, Lrexsee/natives/ViewTag;->view:Landroid/view/View;

    check-cast v0, Lrexsee/core/browser/BrowserDiv;

    invoke-virtual {v0, p2}, Lrexsee/core/browser/BrowserDiv;->setStyle(Ljava/lang/String;)V

    .line 590
    .end local p2    # "style":Ljava/lang/String;
    :goto_1
    iget-object p2, p1, Lrexsee/natives/ViewTag;->style:Lrexsee/core/style/StyleSheet;

    iget-object p2, p2, Lrexsee/core/style/StyleSheet;->position:Ljava/lang/String;

    const-string v0, "absolute"

    invoke-virtual {p2, v0}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result p2

    if-eqz p2, :cond_3a

    .line 591
    iget-object p2, p1, Lrexsee/natives/ViewTag;->view:Landroid/view/View;

    iget-object p3, p1, Lrexsee/natives/ViewTag;->style:Lrexsee/core/style/StyleSheet;

    .end local p3    # "javaView":Lrexsee/natives/RexseeJavaView;
    iget-object p3, p3, Lrexsee/core/style/StyleSheet;->min_width:Ljava/lang/String;

    const/4 v0, 0x0

    invoke-static {p3, v0}, Lrexsee/core/utilities/Utilities;->getInt(Ljava/lang/String;I)I

    move-result p3

    invoke-virtual {p2, p3}, Landroid/view/View;->setMinimumWidth(I)V

    .line 592
    iget-object p2, p1, Lrexsee/natives/ViewTag;->view:Landroid/view/View;

    iget-object p3, p1, Lrexsee/natives/ViewTag;->style:Lrexsee/core/style/StyleSheet;

    iget-object p3, p3, Lrexsee/core/style/StyleSheet;->min_height:Ljava/lang/String;

    const/4 v0, 0x0

    invoke-static {p3, v0}, Lrexsee/core/utilities/Utilities;->getInt(Ljava/lang/String;I)I

    move-result p3

    invoke-virtual {p2, p3}, Landroid/view/View;->setMinimumHeight(I)V

    .line 593
    iget-object p2, p1, Lrexsee/natives/ViewTag;->view:Landroid/view/View;

    new-instance p3, Lrexsee/natives/widget/AbsoluteLayout$LayoutParams;

    iget-object v0, p1, Lrexsee/natives/ViewTag;->style:Lrexsee/core/style/StyleSheet;

    invoke-virtual {v0}, Lrexsee/core/style/StyleSheet;->getWidth()I

    move-result v0

    iget-object v1, p1, Lrexsee/natives/ViewTag;->style:Lrexsee/core/style/StyleSheet;

    invoke-virtual {v1}, Lrexsee/core/style/StyleSheet;->getHeight()I

    move-result v1

    iget-object v2, p1, Lrexsee/natives/ViewTag;->style:Lrexsee/core/style/StyleSheet;

    invoke-virtual {v2}, Lrexsee/core/style/StyleSheet;->getLeft()I

    move-result v2

    iget-object v3, p1, Lrexsee/natives/ViewTag;->style:Lrexsee/core/style/StyleSheet;

    invoke-virtual {v3}, Lrexsee/core/style/StyleSheet;->getTop()I

    move-result v3

    invoke-direct {p3, v0, v1, v2, v3}, Lrexsee/natives/widget/AbsoluteLayout$LayoutParams;-><init>(IIII)V

    invoke-virtual {p2, p3}, Landroid/view/View;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    .line 615
    :cond_2
    :goto_2
    iget-object p2, p1, Lrexsee/natives/ViewTag;->type:Ljava/lang/String;

    const-string p3, "TextView"

    invoke-virtual {p2, p3}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result p2

    if-nez p2, :cond_3

    iget-object p2, p1, Lrexsee/natives/ViewTag;->type:Ljava/lang/String;

    const-string p3, "EditText"

    invoke-virtual {p2, p3}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result p2

    if-nez p2, :cond_3

    iget-object p2, p1, Lrexsee/natives/ViewTag;->type:Ljava/lang/String;

    const-string p3, "Button"

    invoke-virtual {p2, p3}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result p2

    if-nez p2, :cond_3

    iget-object p2, p1, Lrexsee/natives/ViewTag;->type:Ljava/lang/String;

    const-string p3, "RadioButton"

    invoke-virtual {p2, p3}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result p2

    if-nez p2, :cond_3

    iget-object p2, p1, Lrexsee/natives/ViewTag;->type:Ljava/lang/String;

    const-string p3, "CheckBox"

    invoke-virtual {p2, p3}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result p2

    if-nez p2, :cond_3

    iget-object p2, p1, Lrexsee/natives/ViewTag;->type:Ljava/lang/String;

    const-string p3, "ToggleButton"

    invoke-virtual {p2, p3}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result p2

    if-nez p2, :cond_3

    iget-object p2, p1, Lrexsee/natives/ViewTag;->type:Ljava/lang/String;

    const-string p3, "Chronometer"

    invoke-virtual {p2, p3}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result p2

    if-nez p2, :cond_3

    iget-object p2, p1, Lrexsee/natives/ViewTag;->type:Ljava/lang/String;

    const-string p3, "DigitalClock"

    invoke-virtual {p2, p3}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result p2

    if-eqz p2, :cond_4

    :cond_3
    iget-object p2, p1, Lrexsee/natives/ViewTag;->view:Landroid/view/View;

    check-cast p2, Landroid/widget/TextView;

    iget-object p3, p1, Lrexsee/natives/ViewTag;->style:Lrexsee/core/style/StyleSheet;

    invoke-static {p0, p2, p3}, Lrexsee/natives/ViewStyle;->setTextViewStyle(Lrexsee/core/browser/Browser;Landroid/widget/TextView;Lrexsee/core/style/StyleSheet;)V

    .line 616
    :cond_4
    iget-object p2, p1, Lrexsee/natives/ViewTag;->type:Ljava/lang/String;

    const-string p3, "EditText"

    invoke-virtual {p2, p3}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result p2

    if-eqz p2, :cond_5

    iget-object p2, p1, Lrexsee/natives/ViewTag;->view:Landroid/view/View;

    check-cast p2, Landroid/widget/EditText;

    iget-object p3, p1, Lrexsee/natives/ViewTag;->style:Lrexsee/core/style/StyleSheet;

    invoke-static {p0, p2, p3}, Lrexsee/natives/ViewStyle;->setEditTextStyle(Lrexsee/core/browser/Browser;Landroid/widget/EditText;Lrexsee/core/style/StyleSheet;)V

    .line 617
    :cond_5
    iget-object p2, p1, Lrexsee/natives/ViewTag;->type:Ljava/lang/String;

    const-string p3, "ImageView"

    invoke-virtual {p2, p3}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result p2

    if-nez p2, :cond_6

    iget-object p2, p1, Lrexsee/natives/ViewTag;->type:Ljava/lang/String;

    const-string p3, "ImageButton"

    invoke-virtual {p2, p3}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result p2

    if-eqz p2, :cond_7

    :cond_6
    iget-object p2, p1, Lrexsee/natives/ViewTag;->view:Landroid/view/View;

    check-cast p2, Landroid/widget/ImageView;

    iget-object p3, p1, Lrexsee/natives/ViewTag;->style:Lrexsee/core/style/StyleSheet;

    invoke-static {p0, p2, p3}, Lrexsee/natives/ViewStyle;->setImageViewStyle(Lrexsee/core/browser/Browser;Landroid/widget/ImageView;Lrexsee/core/style/StyleSheet;)V

    .line 618
    :cond_7
    iget-object p2, p1, Lrexsee/natives/ViewTag;->type:Ljava/lang/String;

    const-string p3, "SurfaceView"

    invoke-virtual {p2, p3}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result p2

    if-eqz p2, :cond_8

    iget-object p2, p1, Lrexsee/natives/ViewTag;->view:Landroid/view/View;

    check-cast p2, Landroid/view/SurfaceView;

    iget-object p3, p1, Lrexsee/natives/ViewTag;->style:Lrexsee/core/style/StyleSheet;

    invoke-static {p0, p2, p3}, Lrexsee/natives/ViewStyle;->setSurfaceViewStyle(Lrexsee/core/browser/Browser;Landroid/view/SurfaceView;Lrexsee/core/style/StyleSheet;)V

    .line 620
    :cond_8
    iget-object p2, p1, Lrexsee/natives/ViewTag;->type:Ljava/lang/String;

    const-string p3, "VideoView"

    invoke-virtual {p2, p3}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result p2

    if-eqz p2, :cond_9

    .line 622
    :try_start_0
    iget-object p2, p1, Lrexsee/natives/ViewTag;->view:Landroid/view/View;

    check-cast p2, Lrexsee/multimedia/VideoView;

    .line 623
    .local p2, "videoView":Lrexsee/multimedia/VideoView;
    const/4 p3, 0x1

    invoke-virtual {p2, p3}, Lrexsee/multimedia/VideoView;->setZOrderOnTop(Z)V

    .line 624
    iget-object p3, p1, Lrexsee/natives/ViewTag;->style:Lrexsee/core/style/StyleSheet;

    iget-object p3, p3, Lrexsee/core/style/StyleSheet;->mode:Ljava/lang/String;

    const-string v0, "loop"

    invoke-virtual {p3, v0}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result p3

    if-nez p3, :cond_3f

    iget-object p3, p1, Lrexsee/natives/ViewTag;->style:Lrexsee/core/style/StyleSheet;

    iget-object p3, p3, Lrexsee/core/style/StyleSheet;->mode:Ljava/lang/String;

    const-string v0, "looping"

    invoke-virtual {p3, v0}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result p3

    if-nez p3, :cond_3f

    const/4 p3, 0x0

    :goto_3
    iput-boolean p3, p2, Lrexsee/multimedia/VideoView;->isLooping:Z

    .line 625
    iget-object p3, p1, Lrexsee/natives/ViewTag;->style:Lrexsee/core/style/StyleSheet;

    iget-object p3, p3, Lrexsee/core/style/StyleSheet;->path:Ljava/lang/String;

    invoke-virtual {p3}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object p3

    iget-object v0, p2, Lrexsee/multimedia/VideoView;->path:Ljava/lang/String;

    invoke-virtual {v0}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p3, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result p3

    if-nez p3, :cond_9

    .line 627
    iget-object p3, p1, Lrexsee/natives/ViewTag;->style:Lrexsee/core/style/StyleSheet;

    iget-object p3, p3, Lrexsee/core/style/StyleSheet;->path:Ljava/lang/String;

    iput-object p3, p2, Lrexsee/multimedia/VideoView;->path:Ljava/lang/String;
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    .line 634
    .end local p2    # "videoView":Lrexsee/multimedia/VideoView;
    :cond_9
    :goto_4
    iget-object p2, p1, Lrexsee/natives/ViewTag;->type:Ljava/lang/String;

    const-string p3, "LinearLayout"

    invoke-virtual {p2, p3}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result p2

    if-nez p2, :cond_a

    iget-object p2, p1, Lrexsee/natives/ViewTag;->type:Ljava/lang/String;

    const-string p3, "RadioGroup"

    invoke-virtual {p2, p3}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result p2

    if-eqz p2, :cond_c

    .line 636
    :cond_a
    :try_start_1
    iget-object p2, p1, Lrexsee/natives/ViewTag;->view:Landroid/view/View;

    check-cast p2, Landroid/widget/LinearLayout;

    .line 637
    .local p2, "linearLayout":Landroid/widget/LinearLayout;
    iget-object p3, p1, Lrexsee/natives/ViewTag;->style:Lrexsee/core/style/StyleSheet;

    iget-object p3, p3, Lrexsee/core/style/StyleSheet;->orientation:Ljava/lang/String;

    const-string v0, "x"

    invoke-virtual {p3, v0}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result p3

    if-nez p3, :cond_b

    iget-object p3, p1, Lrexsee/natives/ViewTag;->style:Lrexsee/core/style/StyleSheet;

    iget-object p3, p3, Lrexsee/core/style/StyleSheet;->orientation:Ljava/lang/String;

    const-string v0, "horizontal"

    invoke-virtual {p3, v0}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result p3

    if-eqz p3, :cond_40

    :cond_b
    const/4 p3, 0x0

    :goto_5
    invoke-virtual {p2, p3}, Landroid/widget/LinearLayout;->setOrientation(I)V

    .line 638
    iget-object p3, p1, Lrexsee/natives/ViewTag;->style:Lrexsee/core/style/StyleSheet;

    invoke-virtual {p3}, Lrexsee/core/style/StyleSheet;->getGravity()I

    move-result p3

    invoke-virtual {p2, p3}, Landroid/widget/LinearLayout;->setGravity(I)V
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_1

    .line 643
    .end local p2    # "linearLayout":Landroid/widget/LinearLayout;
    :cond_c
    :goto_6
    iget-object p2, p1, Lrexsee/natives/ViewTag;->type:Ljava/lang/String;

    const-string p3, "Chronometer"

    invoke-virtual {p2, p3}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result p2

    if-eqz p2, :cond_e

    .line 645
    :try_start_2
    iget-object p2, p1, Lrexsee/natives/ViewTag;->view:Landroid/view/View;

    check-cast p2, Landroid/widget/Chronometer;

    .line 646
    .local p2, "chronometer":Landroid/widget/Chronometer;
    iget-object p3, p1, Lrexsee/natives/ViewTag;->style:Lrexsee/core/style/StyleSheet;

    iget-object p3, p3, Lrexsee/core/style/StyleSheet;->format:Ljava/lang/String;

    invoke-virtual {p3}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object p3

    const-string v0, ""

    invoke-virtual {p3, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result p3

    if-nez p3, :cond_d

    iget-object p3, p1, Lrexsee/natives/ViewTag;->style:Lrexsee/core/style/StyleSheet;

    iget-object p3, p3, Lrexsee/core/style/StyleSheet;->format:Ljava/lang/String;

    invoke-virtual {p2, p3}, Landroid/widget/Chronometer;->setFormat(Ljava/lang/String;)V

    .line 647
    :cond_d
    invoke-static {}, Landroid/os/SystemClock;->elapsedRealtime()J

    move-result-wide v0

    iget-object p3, p1, Lrexsee/natives/ViewTag;->style:Lrexsee/core/style/StyleSheet;

    iget-object p3, p3, Lrexsee/core/style/StyleSheet;->duration:Ljava/lang/String;

    const/4 v2, 0x0

    invoke-static {p3, v2}, Lrexsee/core/utilities/Utilities;->getInt(Ljava/lang/String;I)I

    move-result p3

    int-to-long v2, p3

    add-long/2addr v0, v2

    invoke-virtual {p2, v0, v1}, Landroid/widget/Chronometer;->setBase(J)V
    :try_end_2
    .catch Ljava/lang/Exception; {:try_start_2 .. :try_end_2} :catch_2

    .line 652
    .end local p2    # "chronometer":Landroid/widget/Chronometer;
    :cond_e
    :goto_7
    iget-object p2, p1, Lrexsee/natives/ViewTag;->type:Ljava/lang/String;

    const-string p3, "ProgressBar"

    invoke-virtual {p2, p3}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result p2

    if-eqz p2, :cond_f

    .line 654
    :try_start_3
    iget-object p3, p1, Lrexsee/natives/ViewTag;->view:Landroid/view/View;

    check-cast p3, Landroid/widget/ProgressBar;

    .line 655
    .local p3, "progressBar":Landroid/widget/ProgressBar;
    iget-object p2, p1, Lrexsee/natives/ViewTag;->style:Lrexsee/core/style/StyleSheet;

    iget-object p2, p2, Lrexsee/core/style/StyleSheet;->progress_color:Ljava/lang/String;

    const/4 v0, 0x0

    invoke-static {p0, p2, v0}, Lrexsee/core/style/RexseeDrawable;->getDrawable(Lrexsee/core/browser/Browser;Ljava/lang/String;Landroid/graphics/drawable/Drawable;)Landroid/graphics/drawable/Drawable;

    move-result-object p2

    .line 656
    .local p2, "progress":Landroid/graphics/drawable/Drawable;
    iget-object v0, p1, Lrexsee/natives/ViewTag;->style:Lrexsee/core/style/StyleSheet;

    iget-object v0, v0, Lrexsee/core/style/StyleSheet;->mode:Ljava/lang/String;

    const-string v1, "indetermination"

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_41

    .line 657
    const/4 v0, 0x1

    invoke-virtual {p3, v0}, Landroid/widget/ProgressBar;->setIndeterminate(Z)V

    .line 658
    if-eqz p2, :cond_f

    invoke-virtual {p3, p2}, Landroid/widget/ProgressBar;->setIndeterminateDrawable(Landroid/graphics/drawable/Drawable;)V
    :try_end_3
    .catch Ljava/lang/Exception; {:try_start_3 .. :try_end_3} :catch_3

    .line 671
    .end local p2    # "progress":Landroid/graphics/drawable/Drawable;
    .end local p3    # "progressBar":Landroid/widget/ProgressBar;
    :cond_f
    :goto_8
    iget-object p2, p1, Lrexsee/natives/ViewTag;->type:Ljava/lang/String;

    const-string p3, "SeekBar"

    invoke-virtual {p2, p3}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result p2

    if-eqz p2, :cond_13

    .line 673
    :try_start_4
    iget-object p3, p1, Lrexsee/natives/ViewTag;->view:Landroid/view/View;

    check-cast p3, Landroid/widget/SeekBar;

    .line 674
    .local p3, "seekBar":Landroid/widget/SeekBar;
    iget-object p2, p1, Lrexsee/natives/ViewTag;->style:Lrexsee/core/style/StyleSheet;

    iget-object p2, p2, Lrexsee/core/style/StyleSheet;->progress_color:Ljava/lang/String;

    const/4 v0, 0x0

    invoke-static {p0, p2, v0}, Lrexsee/core/style/RexseeDrawable;->getDrawable(Lrexsee/core/browser/Browser;Ljava/lang/String;Landroid/graphics/drawable/Drawable;)Landroid/graphics/drawable/Drawable;

    move-result-object p2

    .line 675
    .restart local p2    # "progress":Landroid/graphics/drawable/Drawable;
    if-eqz p2, :cond_10

    invoke-virtual {p3, p2}, Landroid/widget/SeekBar;->setProgressDrawable(Landroid/graphics/drawable/Drawable;)V

    .line 676
    :cond_10
    iget-object p2, p1, Lrexsee/natives/ViewTag;->style:Lrexsee/core/style/StyleSheet;

    .end local p2    # "progress":Landroid/graphics/drawable/Drawable;
    iget-object p2, p2, Lrexsee/core/style/StyleSheet;->progress:Ljava/lang/String;

    const-string v0, "%"

    const-string v1, ""

    invoke-virtual {p2, v0, v1}, Ljava/lang/String;->replace(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;

    move-result-object p2

    invoke-virtual {p2}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object p2

    const/4 v0, 0x0

    invoke-static {p2, v0}, Lrexsee/core/utilities/Utilities;->getInt(Ljava/lang/String;I)I

    move-result p2

    .line 677
    .local p2, "p":I
    if-gez p2, :cond_11

    const/4 p2, 0x0

    .line 678
    :cond_11
    const/16 v0, 0x64

    if-le p2, v0, :cond_12

    const/16 p2, 0x64

    .line 679
    :cond_12
    invoke-virtual {p3, p2}, Landroid/widget/SeekBar;->setProgress(I)V
    :try_end_4
    .catch Ljava/lang/Exception; {:try_start_4 .. :try_end_4} :catch_4

    .line 684
    .end local p2    # "p":I
    .end local p3    # "seekBar":Landroid/widget/SeekBar;
    :cond_13
    :goto_9
    iget-object p2, p1, Lrexsee/natives/ViewTag;->type:Ljava/lang/String;

    const-string p3, "RatingBar"

    invoke-virtual {p2, p3}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result p2

    if-eqz p2, :cond_15

    .line 686
    :try_start_5
    iget-object p3, p1, Lrexsee/natives/ViewTag;->view:Landroid/view/View;

    check-cast p3, Landroid/widget/RatingBar;

    .line 687
    .local p3, "ratingBar":Landroid/widget/RatingBar;
    iget-object p2, p1, Lrexsee/natives/ViewTag;->style:Lrexsee/core/style/StyleSheet;

    iget-object p2, p2, Lrexsee/core/style/StyleSheet;->progress_color:Ljava/lang/String;

    const/4 v0, 0x0

    invoke-static {p0, p2, v0}, Lrexsee/core/style/RexseeDrawable;->getDrawable(Lrexsee/core/browser/Browser;Ljava/lang/String;Landroid/graphics/drawable/Drawable;)Landroid/graphics/drawable/Drawable;

    move-result-object p2

    .line 688
    .local p2, "progress":Landroid/graphics/drawable/Drawable;
    if-eqz p2, :cond_14

    invoke-virtual {p3, p2}, Landroid/widget/RatingBar;->setProgressDrawable(Landroid/graphics/drawable/Drawable;)V

    .line 689
    :cond_14
    iget-object p2, p1, Lrexsee/natives/ViewTag;->style:Lrexsee/core/style/StyleSheet;

    .end local p2    # "progress":Landroid/graphics/drawable/Drawable;
    iget-object p2, p2, Lrexsee/core/style/StyleSheet;->rating_stars:Ljava/lang/String;

    invoke-virtual {p2}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object p2

    const/4 v0, 0x5

    invoke-static {p2, v0}, Lrexsee/core/utilities/Utilities;->getInt(Ljava/lang/String;I)I

    move-result p2

    invoke-virtual {p3, p2}, Landroid/widget/RatingBar;->setNumStars(I)V

    .line 690
    iget-object p2, p1, Lrexsee/natives/ViewTag;->style:Lrexsee/core/style/StyleSheet;

    iget-object p2, p2, Lrexsee/core/style/StyleSheet;->rating_step:Ljava/lang/String;

    invoke-virtual {p2}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object p2

    const/high16 v0, 0x3f000000    # 0.5f

    invoke-static {p2, v0}, Lrexsee/core/utilities/Utilities;->getFloat(Ljava/lang/String;F)F

    move-result p2

    invoke-virtual {p3, p2}, Landroid/widget/RatingBar;->setStepSize(F)V

    .line 691
    iget-object p2, p1, Lrexsee/natives/ViewTag;->style:Lrexsee/core/style/StyleSheet;

    iget-object p2, p2, Lrexsee/core/style/StyleSheet;->mode:Ljava/lang/String;

    const-string v0, "indicator"

    invoke-virtual {p2, v0}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result p2

    invoke-virtual {p3, p2}, Landroid/widget/RatingBar;->setIsIndicator(Z)V
    :try_end_5
    .catch Ljava/lang/Exception; {:try_start_5 .. :try_end_5} :catch_5

    .line 696
    .end local p3    # "ratingBar":Landroid/widget/RatingBar;
    :cond_15
    :goto_a
    iget-object p2, p1, Lrexsee/natives/ViewTag;->type:Ljava/lang/String;

    const-string p3, "Spinner"

    invoke-virtual {p2, p3}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result p2

    if-eqz p2, :cond_16

    .line 698
    :try_start_6
    iget-object p2, p1, Lrexsee/natives/ViewTag;->view:Landroid/view/View;

    check-cast p2, Landroid/widget/Spinner;

    .line 699
    .local p2, "spinner":Landroid/widget/Spinner;
    iget-object p3, p1, Lrexsee/natives/ViewTag;->style:Lrexsee/core/style/StyleSheet;

    iget-object p3, p3, Lrexsee/core/style/StyleSheet;->label_type:Ljava/lang/String;

    invoke-virtual {p3}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object p3

    const-string v0, ""

    invoke-virtual {p3, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result p3

    if-nez p3, :cond_16

    .line 700
    iget-object p3, p1, Lrexsee/natives/ViewTag;->style:Lrexsee/core/style/StyleSheet;

    iget-object p3, p3, Lrexsee/core/style/StyleSheet;->label_type:Ljava/lang/String;

    const-string v0, "html"

    invoke-virtual {p3, v0}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result p3

    if-eqz p3, :cond_45

    .line 701
    iget-object p3, p1, Lrexsee/natives/ViewTag;->style:Lrexsee/core/style/StyleSheet;

    iget-object p3, p3, Lrexsee/core/style/StyleSheet;->label:Ljava/lang/String;

    invoke-static {p3}, Landroid/text/Html;->fromHtml(Ljava/lang/String;)Landroid/text/Spanned;

    move-result-object p3

    invoke-virtual {p2, p3}, Landroid/widget/Spinner;->setPrompt(Ljava/lang/CharSequence;)V
    :try_end_6
    .catch Ljava/lang/Exception; {:try_start_6 .. :try_end_6} :catch_6

    .line 712
    .end local p2    # "spinner":Landroid/widget/Spinner;
    :cond_16
    :goto_b
    iget-object p2, p1, Lrexsee/natives/ViewTag;->type:Ljava/lang/String;

    const-string p3, "Gallery"

    invoke-virtual {p2, p3}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result p2

    if-nez p2, :cond_17

    iget-object p2, p1, Lrexsee/natives/ViewTag;->type:Ljava/lang/String;

    const-string p3, "ThreeDGallery"

    invoke-virtual {p2, p3}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result p2

    if-eqz p2, :cond_18

    .line 714
    :cond_17
    :try_start_7
    iget-object p2, p1, Lrexsee/natives/ViewTag;->view:Landroid/view/View;

    check-cast p2, Landroid/widget/Gallery;

    .line 715
    .local p2, "gallery":Landroid/widget/Gallery;
    iget-object p3, p1, Lrexsee/natives/ViewTag;->style:Lrexsee/core/style/StyleSheet;

    invoke-virtual {p3}, Lrexsee/core/style/StyleSheet;->getGravity()I

    move-result p3

    invoke-virtual {p2, p3}, Landroid/widget/Gallery;->setGravity(I)V

    .line 716
    iget-object p3, p1, Lrexsee/natives/ViewTag;->style:Lrexsee/core/style/StyleSheet;

    invoke-virtual {p3}, Lrexsee/core/style/StyleSheet;->getIconAlpha()I

    move-result p3

    int-to-float p3, p3

    invoke-virtual {p2, p3}, Landroid/widget/Gallery;->setUnselectedAlpha(F)V

    .line 717
    iget-object p3, p1, Lrexsee/natives/ViewTag;->style:Lrexsee/core/style/StyleSheet;

    iget-object p3, p3, Lrexsee/core/style/StyleSheet;->duration:Ljava/lang/String;

    const/16 v0, 0xc8

    invoke-static {p3, v0}, Lrexsee/core/utilities/Utilities;->getInt(Ljava/lang/String;I)I

    move-result p3

    invoke-virtual {p2, p3}, Landroid/widget/Gallery;->setAnimationDuration(I)V

    .line 718
    iget-object p3, p1, Lrexsee/natives/ViewTag;->style:Lrexsee/core/style/StyleSheet;

    invoke-virtual {p3}, Lrexsee/core/style/StyleSheet;->getHorizontalSpacing()I

    move-result p3

    invoke-virtual {p2, p3}, Landroid/widget/Gallery;->setSpacing(I)V
    :try_end_7
    .catch Ljava/lang/Exception; {:try_start_7 .. :try_end_7} :catch_7

    .line 724
    .end local p2    # "gallery":Landroid/widget/Gallery;
    :cond_18
    :goto_c
    iget-object p2, p1, Lrexsee/natives/ViewTag;->type:Ljava/lang/String;

    const-string p3, "ImageSwitcher"

    invoke-virtual {p2, p3}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result p2

    if-eqz p2, :cond_19

    .line 725
    iget-object p2, p1, Lrexsee/natives/ViewTag;->view:Landroid/view/View;

    check-cast p2, Landroid/widget/ImageSwitcher;

    const/4 p3, 0x0

    invoke-virtual {p2, p3}, Landroid/widget/ImageSwitcher;->getChildAt(I)Landroid/view/View;

    move-result-object p2

    check-cast p2, Landroid/widget/ImageView;

    iget-object p3, p1, Lrexsee/natives/ViewTag;->style:Lrexsee/core/style/StyleSheet;

    invoke-static {p0, p2, p3}, Lrexsee/natives/ViewStyle;->setImageViewStyle(Lrexsee/core/browser/Browser;Landroid/widget/ImageView;Lrexsee/core/style/StyleSheet;)V

    .line 726
    iget-object p2, p1, Lrexsee/natives/ViewTag;->view:Landroid/view/View;

    check-cast p2, Landroid/widget/ImageSwitcher;

    const/4 p3, 0x1

    invoke-virtual {p2, p3}, Landroid/widget/ImageSwitcher;->getChildAt(I)Landroid/view/View;

    move-result-object p2

    check-cast p2, Landroid/widget/ImageView;

    iget-object p3, p1, Lrexsee/natives/ViewTag;->style:Lrexsee/core/style/StyleSheet;

    invoke-static {p0, p2, p3}, Lrexsee/natives/ViewStyle;->setImageViewStyle(Lrexsee/core/browser/Browser;Landroid/widget/ImageView;Lrexsee/core/style/StyleSheet;)V

    .line 728
    :cond_19
    iget-object p2, p1, Lrexsee/natives/ViewTag;->type:Ljava/lang/String;

    const-string p3, "TextSwitcher"

    invoke-virtual {p2, p3}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result p2

    if-eqz p2, :cond_1a

    .line 729
    iget-object p2, p1, Lrexsee/natives/ViewTag;->view:Landroid/view/View;

    check-cast p2, Landroid/widget/TextSwitcher;

    const/4 p3, 0x0

    invoke-virtual {p2, p3}, Landroid/widget/TextSwitcher;->getChildAt(I)Landroid/view/View;

    move-result-object p2

    check-cast p2, Landroid/widget/TextView;

    iget-object p3, p1, Lrexsee/natives/ViewTag;->style:Lrexsee/core/style/StyleSheet;

    invoke-static {p0, p2, p3}, Lrexsee/natives/ViewStyle;->setTextViewStyle(Lrexsee/core/browser/Browser;Landroid/widget/TextView;Lrexsee/core/style/StyleSheet;)V

    .line 730
    iget-object p2, p1, Lrexsee/natives/ViewTag;->view:Landroid/view/View;

    check-cast p2, Landroid/widget/TextSwitcher;

    const/4 p3, 0x1

    invoke-virtual {p2, p3}, Landroid/widget/TextSwitcher;->getChildAt(I)Landroid/view/View;

    move-result-object p2

    check-cast p2, Landroid/widget/TextView;

    iget-object p3, p1, Lrexsee/natives/ViewTag;->style:Lrexsee/core/style/StyleSheet;

    invoke-static {p0, p2, p3}, Lrexsee/natives/ViewStyle;->setTextViewStyle(Lrexsee/core/browser/Browser;Landroid/widget/TextView;Lrexsee/core/style/StyleSheet;)V

    .line 732
    :cond_1a
    iget-object p2, p1, Lrexsee/natives/ViewTag;->type:Ljava/lang/String;

    const-string p3, "ViewFlipper"

    invoke-virtual {p2, p3}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result p2

    if-eqz p2, :cond_1b

    .line 734
    :try_start_8
    iget-object p2, p1, Lrexsee/natives/ViewTag;->view:Landroid/view/View;

    check-cast p2, Landroid/widget/ViewFlipper;

    iget-object p3, p1, Lrexsee/natives/ViewTag;->style:Lrexsee/core/style/StyleSheet;

    iget-object p3, p3, Lrexsee/core/style/StyleSheet;->duration:Ljava/lang/String;

    const/16 v0, 0x7d0

    invoke-static {p3, v0}, Lrexsee/core/utilities/Utilities;->getInt(Ljava/lang/String;I)I

    move-result p3

    invoke-virtual {p2, p3}, Landroid/widget/ViewFlipper;->setFlipInterval(I)V
    :try_end_8
    .catch Ljava/lang/Exception; {:try_start_8 .. :try_end_8} :catch_8

    .line 739
    :cond_1b
    :goto_d
    iget-object p2, p1, Lrexsee/natives/ViewTag;->type:Ljava/lang/String;

    const-string p3, "ListView"

    invoke-virtual {p2, p3}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result p2

    if-eqz p2, :cond_1c

    .line 741
    :try_start_9
    iget-object p3, p1, Lrexsee/natives/ViewTag;->view:Landroid/view/View;

    check-cast p3, Landroid/widget/ListView;

    .line 742
    .local p3, "listView":Landroid/widget/ListView;
    iget-object p2, p1, Lrexsee/natives/ViewTag;->style:Lrexsee/core/style/StyleSheet;

    iget-object p2, p2, Lrexsee/core/style/StyleSheet;->horizontal_line:Ljava/lang/String;

    invoke-static {p0, p2}, Lrexsee/core/style/RexseeDrawable;->getDrawable(Lrexsee/core/browser/Browser;Ljava/lang/String;)Landroid/graphics/drawable/Drawable;

    move-result-object p2

    .line 743
    .local p2, "divider":Landroid/graphics/drawable/Drawable;
    if-eqz p2, :cond_1c

    .line 744
    invoke-virtual {p3, p2}, Landroid/widget/ListView;->setDivider(Landroid/graphics/drawable/Drawable;)V

    .line 745
    iget-object p2, p1, Lrexsee/natives/ViewTag;->style:Lrexsee/core/style/StyleSheet;

    .end local p2    # "divider":Landroid/graphics/drawable/Drawable;
    invoke-virtual {p2}, Lrexsee/core/style/StyleSheet;->getVerticalSpacing()I

    move-result p2

    invoke-virtual {p3, p2}, Landroid/widget/ListView;->setDividerHeight(I)V
    :try_end_9
    .catch Ljava/lang/Exception; {:try_start_9 .. :try_end_9} :catch_9

    .line 751
    .end local p3    # "listView":Landroid/widget/ListView;
    :cond_1c
    :goto_e
    iget-object p2, p1, Lrexsee/natives/ViewTag;->type:Ljava/lang/String;

    const-string p3, "GridView"

    invoke-virtual {p2, p3}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result p2

    if-eqz p2, :cond_1d

    .line 753
    :try_start_a
    iget-object p2, p1, Lrexsee/natives/ViewTag;->view:Landroid/view/View;

    check-cast p2, Landroid/widget/GridView;

    .line 754
    .local p2, "gridView":Landroid/widget/GridView;
    iget-object p3, p1, Lrexsee/natives/ViewTag;->style:Lrexsee/core/style/StyleSheet;

    invoke-virtual {p3}, Lrexsee/core/style/StyleSheet;->getGravity()I

    move-result p3

    invoke-virtual {p2, p3}, Landroid/widget/GridView;->setGravity(I)V

    .line 756
    iget-object p3, p1, Lrexsee/natives/ViewTag;->style:Lrexsee/core/style/StyleSheet;

    iget-object p3, p3, Lrexsee/core/style/StyleSheet;->format:Ljava/lang/String;

    const-string v0, "STRETCH_SPACING"

    invoke-virtual {p3, v0}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result p3

    if-eqz p3, :cond_47

    .line 757
    const/4 p3, 0x1

    .line 765
    .local p3, "stretch":I
    :goto_f
    invoke-virtual {p2, p3}, Landroid/widget/GridView;->setStretchMode(I)V

    .line 766
    iget-object p3, p1, Lrexsee/natives/ViewTag;->style:Lrexsee/core/style/StyleSheet;

    .end local p3    # "stretch":I
    iget-object p3, p3, Lrexsee/core/style/StyleSheet;->column_number:Ljava/lang/String;

    const/4 v0, 0x0

    invoke-static {p3, v0}, Lrexsee/core/utilities/Utilities;->getInt(Ljava/lang/String;I)I

    move-result p3

    .line 767
    .local p3, "numOfColumns":I
    if-lez p3, :cond_4a

    .end local p3    # "numOfColumns":I
    :goto_10
    invoke-virtual {p2, p3}, Landroid/widget/GridView;->setNumColumns(I)V

    .line 768
    iget-object p3, p1, Lrexsee/natives/ViewTag;->style:Lrexsee/core/style/StyleSheet;

    invoke-virtual {p3}, Lrexsee/core/style/StyleSheet;->getColumnWidth()I

    move-result p3

    invoke-virtual {p2, p3}, Landroid/widget/GridView;->setColumnWidth(I)V

    .line 769
    iget-object p3, p1, Lrexsee/natives/ViewTag;->style:Lrexsee/core/style/StyleSheet;

    invoke-virtual {p3}, Lrexsee/core/style/StyleSheet;->getHorizontalSpacing()I

    move-result p3

    invoke-virtual {p2, p3}, Landroid/widget/GridView;->setHorizontalSpacing(I)V

    .line 770
    iget-object p3, p1, Lrexsee/natives/ViewTag;->style:Lrexsee/core/style/StyleSheet;

    invoke-virtual {p3}, Lrexsee/core/style/StyleSheet;->getVerticalSpacing()I

    move-result p3

    invoke-virtual {p2, p3}, Landroid/widget/GridView;->setVerticalSpacing(I)V
    :try_end_a
    .catch Ljava/lang/Exception; {:try_start_a .. :try_end_a} :catch_a

    .line 775
    .end local p2    # "gridView":Landroid/widget/GridView;
    :cond_1d
    :goto_11
    iget-object p2, p1, Lrexsee/natives/ViewTag;->type:Ljava/lang/String;

    const-string p3, "DatePicker"

    invoke-virtual {p2, p3}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result p2

    if-eqz p2, :cond_1f

    .line 777
    :try_start_b
    iget-object p2, p1, Lrexsee/natives/ViewTag;->style:Lrexsee/core/style/StyleSheet;

    iget-object p2, p2, Lrexsee/core/style/StyleSheet;->label_visibility:Ljava/lang/String;

    const-string p3, "\\|"

    invoke-virtual {p2, p3}, Ljava/lang/String;->split(Ljava/lang/String;)[Ljava/lang/String;

    move-result-object p3

    .line 778
    .local p3, "visibility":[Ljava/lang/String;
    array-length p2, p3

    const/4 v0, 0x3

    if-ne p2, v0, :cond_1e

    .line 779
    iget-object p2, p1, Lrexsee/natives/ViewTag;->view:Landroid/view/View;

    check-cast p2, Landroid/widget/DatePicker;

    const/4 v0, 0x0

    invoke-virtual {p2, v0}, Landroid/widget/DatePicker;->getChildAt(I)Landroid/view/View;

    move-result-object p2

    check-cast p2, Landroid/view/ViewGroup;

    .line 780
    .local p2, "pickerGroup":Landroid/view/ViewGroup;
    const/4 v0, 0x0

    invoke-virtual {p2, v0}, Landroid/view/ViewGroup;->getChildAt(I)Landroid/view/View;

    move-result-object v0

    const/4 v1, 0x0

    aget-object v1, p3, v1

    const-string v2, "hidden"

    invoke-virtual {v1, v2}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_4b

    const/16 v1, 0x8

    :goto_12
    invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V

    .line 781
    const/4 v0, 0x1

    invoke-virtual {p2, v0}, Landroid/view/ViewGroup;->getChildAt(I)Landroid/view/View;

    move-result-object v0

    const/4 v1, 0x1

    aget-object v1, p3, v1

    const-string v2, "hidden"

    invoke-virtual {v1, v2}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_4c

    const/16 v1, 0x8

    :goto_13
    invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V

    .line 782
    const/4 v0, 0x2

    invoke-virtual {p2, v0}, Landroid/view/ViewGroup;->getChildAt(I)Landroid/view/View;

    move-result-object p2

    .end local p2    # "pickerGroup":Landroid/view/ViewGroup;
    const/4 v0, 0x2

    aget-object p3, p3, v0

    .end local p3    # "visibility":[Ljava/lang/String;
    const-string v0, "hidden"

    invoke-virtual {p3, v0}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result p3

    if-eqz p3, :cond_4d

    const/16 p3, 0x8

    :goto_14
    invoke-virtual {p2, p3}, Landroid/view/View;->setVisibility(I)V

    .line 784
    :cond_1e
    iget-object p2, p1, Lrexsee/natives/ViewTag;->style:Lrexsee/core/style/StyleSheet;

    iget-object p2, p2, Lrexsee/core/style/StyleSheet;->enable:Ljava/lang/String;

    const-string p3, "\\|"

    invoke-virtual {p2, p3}, Ljava/lang/String;->split(Ljava/lang/String;)[Ljava/lang/String;

    move-result-object p2

    .line 785
    .local p2, "enable":[Ljava/lang/String;
    array-length p3, p2

    const/4 v0, 0x3

    if-ne p3, v0, :cond_1f

    .line 786
    iget-object p3, p1, Lrexsee/natives/ViewTag;->view:Landroid/view/View;

    check-cast p3, Landroid/widget/DatePicker;

    const/4 v0, 0x0

    invoke-virtual {p3, v0}, Landroid/widget/DatePicker;->getChildAt(I)Landroid/view/View;

    move-result-object p3

    check-cast p3, Landroid/view/ViewGroup;

    .line 787
    .local p3, "pickerGroup":Landroid/view/ViewGroup;
    const/4 v0, 0x0

    invoke-virtual {p3, v0}, Landroid/view/ViewGroup;->getChildAt(I)Landroid/view/View;

    move-result-object v0

    const/4 v1, 0x0

    aget-object v1, p2, v1

    const-string v2, "false"

    invoke-virtual {v1, v2}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_4e

    const/4 v1, 0x0

    :goto_15
    invoke-virtual {v0, v1}, Landroid/view/View;->setEnabled(Z)V

    .line 788
    const/4 v0, 0x1

    invoke-virtual {p3, v0}, Landroid/view/ViewGroup;->getChildAt(I)Landroid/view/View;

    move-result-object v0

    const/4 v1, 0x1

    aget-object v1, p2, v1

    const-string v2, "false"

    invoke-virtual {v1, v2}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_4f

    const/4 v1, 0x0

    :goto_16
    invoke-virtual {v0, v1}, Landroid/view/View;->setEnabled(Z)V

    .line 789
    const/4 v0, 0x2

    invoke-virtual {p3, v0}, Landroid/view/ViewGroup;->getChildAt(I)Landroid/view/View;

    move-result-object p3

    .end local p3    # "pickerGroup":Landroid/view/ViewGroup;
    const/4 v0, 0x2

    aget-object p2, p2, v0

    .end local p2    # "enable":[Ljava/lang/String;
    const-string v0, "false"

    invoke-virtual {p2, v0}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result p2

    if-eqz p2, :cond_50

    const/4 p2, 0x0

    :goto_17
    invoke-virtual {p3, p2}, Landroid/view/View;->setEnabled(Z)V
    :try_end_b
    .catch Ljava/lang/Exception; {:try_start_b .. :try_end_b} :catch_b

    .line 795
    :cond_1f
    :goto_18
    iget-object p2, p1, Lrexsee/natives/ViewTag;->type:Ljava/lang/String;

    const-string p3, "TimePicker"

    invoke-virtual {p2, p3}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result p2

    if-eqz p2, :cond_21

    .line 797
    :try_start_c
    iget-object p2, p1, Lrexsee/natives/ViewTag;->view:Landroid/view/View;

    check-cast p2, Landroid/widget/TimePicker;

    iget-object p3, p1, Lrexsee/natives/ViewTag;->style:Lrexsee/core/style/StyleSheet;

    iget-object p3, p3, Lrexsee/core/style/StyleSheet;->format:Ljava/lang/String;

    const-string v0, "12"

    invoke-virtual {p3, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result p3

    if-eqz p3, :cond_51

    const/4 p3, 0x0

    :goto_19
    invoke-static {p3}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object p3

    invoke-virtual {p2, p3}, Landroid/widget/TimePicker;->setIs24HourView(Ljava/lang/Boolean;)V

    .line 798
    iget-object p2, p1, Lrexsee/natives/ViewTag;->style:Lrexsee/core/style/StyleSheet;

    iget-object p2, p2, Lrexsee/core/style/StyleSheet;->label_visibility:Ljava/lang/String;

    const-string p3, "\\|"

    invoke-virtual {p2, p3}, Ljava/lang/String;->split(Ljava/lang/String;)[Ljava/lang/String;

    move-result-object p3

    .line 799
    .local p3, "visibility":[Ljava/lang/String;
    array-length p2, p3

    const/4 v0, 0x2

    if-ne p2, v0, :cond_20

    .line 800
    iget-object p2, p1, Lrexsee/natives/ViewTag;->view:Landroid/view/View;

    check-cast p2, Landroid/widget/TimePicker;

    const/4 v0, 0x0

    invoke-virtual {p2, v0}, Landroid/widget/TimePicker;->getChildAt(I)Landroid/view/View;

    move-result-object p2

    check-cast p2, Landroid/view/ViewGroup;

    .line 801
    .local p2, "pickerGroup":Landroid/view/ViewGroup;
    const/4 v0, 0x0

    invoke-virtual {p2, v0}, Landroid/view/ViewGroup;->getChildAt(I)Landroid/view/View;

    move-result-object v0

    const/4 v1, 0x0

    aget-object v1, p3, v1

    const-string v2, "hidden"

    invoke-virtual {v1, v2}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_52

    const/16 v1, 0x8

    :goto_1a
    invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V

    .line 802
    const/4 v0, 0x1

    invoke-virtual {p2, v0}, Landroid/view/ViewGroup;->getChildAt(I)Landroid/view/View;

    move-result-object p2

    .end local p2    # "pickerGroup":Landroid/view/ViewGroup;
    const/4 v0, 0x1

    aget-object p3, p3, v0

    .end local p3    # "visibility":[Ljava/lang/String;
    const-string v0, "hidden"

    invoke-virtual {p3, v0}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result p3

    if-eqz p3, :cond_53

    const/16 p3, 0x8

    :goto_1b
    invoke-virtual {p2, p3}, Landroid/view/View;->setVisibility(I)V

    .line 804
    :cond_20
    iget-object p2, p1, Lrexsee/natives/ViewTag;->style:Lrexsee/core/style/StyleSheet;

    iget-object p2, p2, Lrexsee/core/style/StyleSheet;->enable:Ljava/lang/String;

    const-string p3, "\\|"

    invoke-virtual {p2, p3}, Ljava/lang/String;->split(Ljava/lang/String;)[Ljava/lang/String;

    move-result-object p2

    .line 805
    .local p2, "enable":[Ljava/lang/String;
    array-length p3, p2

    const/4 v0, 0x2

    if-ne p3, v0, :cond_21

    .line 806
    iget-object p3, p1, Lrexsee/natives/ViewTag;->view:Landroid/view/View;

    check-cast p3, Landroid/widget/TimePicker;

    const/4 v0, 0x0

    invoke-virtual {p3, v0}, Landroid/widget/TimePicker;->getChildAt(I)Landroid/view/View;

    move-result-object p3

    check-cast p3, Landroid/view/ViewGroup;

    .line 807
    .local p3, "pickerGroup":Landroid/view/ViewGroup;
    const/4 v0, 0x0

    invoke-virtual {p3, v0}, Landroid/view/ViewGroup;->getChildAt(I)Landroid/view/View;

    move-result-object v0

    const/4 v1, 0x0

    aget-object v1, p2, v1

    const-string v2, "false"

    invoke-virtual {v1, v2}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_54

    const/4 v1, 0x0

    :goto_1c
    invoke-virtual {v0, v1}, Landroid/view/View;->setEnabled(Z)V

    .line 808
    const/4 v0, 0x1

    invoke-virtual {p3, v0}, Landroid/view/ViewGroup;->getChildAt(I)Landroid/view/View;

    move-result-object p3

    .end local p3    # "pickerGroup":Landroid/view/ViewGroup;
    const/4 v0, 0x1

    aget-object p2, p2, v0

    .end local p2    # "enable":[Ljava/lang/String;
    const-string v0, "false"

    invoke-virtual {p2, v0}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result p2

    if-eqz p2, :cond_55

    const/4 p2, 0x0

    :goto_1d
    invoke-virtual {p3, p2}, Landroid/view/View;->setEnabled(Z)V
    :try_end_c
    .catch Ljava/lang/Exception; {:try_start_c .. :try_end_c} :catch_c

    .line 814
    :cond_21
    :goto_1e
    iget-object p0, p1, Lrexsee/natives/ViewTag;->view:Landroid/view/View;

    .end local p0    # "browser":Lrexsee/core/browser/Browser;
    invoke-virtual {p0}, Landroid/view/View;->postInvalidate()V

    .line 816
    return-void

    .line 558
    .restart local p0    # "browser":Lrexsee/core/browser/Browser;
    .local p2, "style":Ljava/lang/String;
    .local p3, "javaView":Lrexsee/natives/RexseeJavaView;
    :cond_22
    iget-object v0, p1, Lrexsee/natives/ViewTag;->type:Ljava/lang/String;

    const-string v1, "ImageButton"

    invoke-virtual {v0, v1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_23

    new-instance v0, Ljava/lang/StringBuilder;

    const-string v1, "width:wrapcontent;height:wrapcontent;icon-padding:10 10 15 10;background-color:default;icon-background-color:default;"

    invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v0, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object p2

    .end local p2    # "style":Ljava/lang/String;
    invoke-virtual {p2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p2

    .restart local p2    # "style":Ljava/lang/String;
    goto/16 :goto_0

    .line 559
    :cond_23
    iget-object v0, p1, Lrexsee/natives/ViewTag;->type:Ljava/lang/String;

    const-string v1, "ToggleButton"

    invoke-virtual {v0, v1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_24

    new-instance v0, Ljava/lang/StringBuilder;

    const-string v1, "width:100;height:60;label-padding-bottom:15px;label-background-color:default;background-color:default;color:#000000;"

    invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v0, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object p2

    .end local p2    # "style":Ljava/lang/String;
    invoke-virtual {p2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p2

    .restart local p2    # "style":Ljava/lang/String;
    goto/16 :goto_0

    .line 560
    :cond_24
    iget-object v0, p1, Lrexsee/natives/ViewTag;->type:Ljava/lang/String;

    const-string v1, "EditText"

    invoke-virtual {v0, v1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_25

    new-instance v0, Ljava/lang/StringBuilder;

    const-string v1, "min-height:24;height:wrapcontent;label-padding:3 10 5 10;label-background-color:default;background-color:default;color:#000000;text-align:left;"

    invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v0, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object p2

    .end local p2    # "style":Ljava/lang/String;
    invoke-virtual {p2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p2

    .restart local p2    # "style":Ljava/lang/String;
    goto/16 :goto_0

    .line 561
    :cond_25
    iget-object v0, p1, Lrexsee/natives/ViewTag;->type:Ljava/lang/String;

    const-string v1, "RadioButton"

    invoke-virtual {v0, v1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_26

    new-instance v0, Ljava/lang/StringBuilder;

    const-string v1, "min-height:40;height:wrapcontent;label-padding:8 5 8 40;text-align:left;"

    invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v0, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object p2

    .end local p2    # "style":Ljava/lang/String;
    invoke-virtual {p2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p2

    .restart local p2    # "style":Ljava/lang/String;
    goto/16 :goto_0

    .line 562
    :cond_26
    iget-object v0, p1, Lrexsee/natives/ViewTag;->type:Ljava/lang/String;

    const-string v1, "CheckBox"

    invoke-virtual {v0, v1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_27

    new-instance v0, Ljava/lang/StringBuilder;

    const-string v1, "min-height:40;height:wrapcontent;label-padding:8 5 8 40;text-align:left;"

    invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v0, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object p2

    .end local p2    # "style":Ljava/lang/String;
    invoke-virtual {p2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p2

    .restart local p2    # "style":Ljava/lang/String;
    goto/16 :goto_0

    .line 563
    :cond_27
    iget-object v0, p1, Lrexsee/natives/ViewTag;->type:Ljava/lang/String;

    const-string v1, "Chronometer"

    invoke-virtual {v0, v1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_28

    new-instance v0, Ljava/lang/StringBuilder;

    const-string v1, "duration:0;"

    invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v0, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object p2

    .end local p2    # "style":Ljava/lang/String;
    invoke-virtual {p2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p2

    .restart local p2    # "style":Ljava/lang/String;
    goto/16 :goto_0

    .line 564
    :cond_28
    iget-object v0, p1, Lrexsee/natives/ViewTag;->type:Ljava/lang/String;

    const-string v1, "ProgressBar"

    invoke-virtual {v0, v1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_29

    new-instance v0, Ljava/lang/StringBuilder;

    const-string v1, "label-background-color:default;background-color:default;progress-color:default;height:wrapcontent;"

    invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v0, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object p2

    .end local p2    # "style":Ljava/lang/String;
    invoke-virtual {p2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p2

    .restart local p2    # "style":Ljava/lang/String;
    goto/16 :goto_0

    .line 565
    :cond_29
    iget-object v0, p1, Lrexsee/natives/ViewTag;->type:Ljava/lang/String;

    const-string v1, "SeekBar"

    invoke-virtual {v0, v1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_2a

    new-instance v0, Ljava/lang/StringBuilder;

    const-string v1, "label-background-color:default;background-color:default;progress-color:default;"

    invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v0, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object p2

    .end local p2    # "style":Ljava/lang/String;
    const-string v0, ";height:wrapcontent;"

    invoke-virtual {p2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object p2

    invoke-virtual {p2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p2

    .restart local p2    # "style":Ljava/lang/String;
    goto/16 :goto_0

    .line 566
    :cond_2a
    iget-object v0, p1, Lrexsee/natives/ViewTag;->type:Ljava/lang/String;

    const-string v1, "RatingBar"

    invoke-virtual {v0, v1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_2b

    new-instance v0, Ljava/lang/StringBuilder;

    const-string v1, "label-background-color:default;background-color:default;progress-color:default;"

    invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v0, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object p2

    .end local p2    # "style":Ljava/lang/String;
    const-string v0, ";width:wrapcontent;height:wrapcontent;"

    invoke-virtual {p2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object p2

    invoke-virtual {p2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p2

    .restart local p2    # "style":Ljava/lang/String;
    goto/16 :goto_0

    .line 567
    :cond_2b
    iget-object v0, p1, Lrexsee/natives/ViewTag;->type:Ljava/lang/String;

    const-string v1, "Spinner"

    invoke-virtual {v0, v1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_2c

    new-instance v0, Ljava/lang/StringBuilder;

    const-string v1, "width:wrapcontent;height:wrapcontent;label-background-color:default;background-color:default;color:black;font-size:16px;padding:6 55 10 15;label-padding:0;"

    invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v0, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object p2

    .end local p2    # "style":Ljava/lang/String;
    invoke-virtual {p2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p2

    .restart local p2    # "style":Ljava/lang/String;
    goto/16 :goto_0

    .line 568
    :cond_2c
    iget-object v0, p1, Lrexsee/natives/ViewTag;->type:Ljava/lang/String;

    const-string v1, "DatePicker"

    invoke-virtual {v0, v1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_2d

    new-instance v0, Ljava/lang/StringBuilder;

    const-string v1, "width:wrapcontent;height:wrapcontent;"

    invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v0, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object p2

    .end local p2    # "style":Ljava/lang/String;
    invoke-virtual {p2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p2

    .restart local p2    # "style":Ljava/lang/String;
    goto/16 :goto_0

    .line 569
    :cond_2d
    iget-object v0, p1, Lrexsee/natives/ViewTag;->type:Ljava/lang/String;

    const-string v1, "TimePicker"

    invoke-virtual {v0, v1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_2e

    new-instance v0, Ljava/lang/StringBuilder;

    const-string v1, "width:wrapcontent;height:wrapcontent;"

    invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v0, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object p2

    .end local p2    # "style":Ljava/lang/String;
    invoke-virtual {p2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p2

    .restart local p2    # "style":Ljava/lang/String;
    goto/16 :goto_0

    .line 570
    :cond_2e
    iget-object v0, p1, Lrexsee/natives/ViewTag;->type:Ljava/lang/String;

    const-string v1, "ZoomControls"

    invoke-virtual {v0, v1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_2f

    new-instance v0, Ljava/lang/StringBuilder;

    const-string v1, "width:wrapcontent;height:wrapcontent;"

    invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v0, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object p2

    .end local p2    # "style":Ljava/lang/String;
    invoke-virtual {p2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p2

    .restart local p2    # "style":Ljava/lang/String;
    goto/16 :goto_0

    .line 571
    :cond_2f
    iget-object v0, p1, Lrexsee/natives/ViewTag;->type:Ljava/lang/String;

    const-string v1, "Gallery"

    invoke-virtual {v0, v1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v0

    if-nez v0, :cond_30

    iget-object v0, p1, Lrexsee/natives/ViewTag;->type:Ljava/lang/String;

    const-string v1, "ThreeDGallery"

    invoke-virtual {v0, v1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_31

    :cond_30
    new-instance v0, Ljava/lang/StringBuilder;

    const-string v1, "width:fillparent;height:fillparent;icon-height:fillparent;icon-width:fillparent;background-color:#000000;icon-background-color:default;label-background-color:default;icon-alpha:0.9;horizontal-spacing:0;duration:200;"

    invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v0, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object p2

    .end local p2    # "style":Ljava/lang/String;
    invoke-virtual {p2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p2

    .restart local p2    # "style":Ljava/lang/String;
    goto/16 :goto_0

    .line 572
    :cond_31
    iget-object v0, p1, Lrexsee/natives/ViewTag;->type:Ljava/lang/String;

    const-string v1, "SurfaceView"

    invoke-virtual {v0, v1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_32

    new-instance v0, Ljava/lang/StringBuilder;

    const-string v1, "width:fillparent;height:fillparent;background-color:transparent;format:default;mode:ZOrderOnTop;"

    invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v0, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object p2

    .end local p2    # "style":Ljava/lang/String;
    invoke-virtual {p2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p2

    .restart local p2    # "style":Ljava/lang/String;
    goto/16 :goto_0

    .line 573
    :cond_32
    iget-object v0, p1, Lrexsee/natives/ViewTag;->type:Ljava/lang/String;

    const-string v1, "ListView"

    invoke-virtual {v0, v1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_33

    new-instance v0, Ljava/lang/StringBuilder;

    const-string v1, "horizontal-line:#888888;vertical-spacing:1;"

    invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v0, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object p2

    .end local p2    # "style":Ljava/lang/String;
    invoke-virtual {p2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p2

    .restart local p2    # "style":Ljava/lang/String;
    goto/16 :goto_0

    .line 574
    :cond_33
    iget-object v0, p1, Lrexsee/natives/ViewTag;->type:Ljava/lang/String;

    const-string v1, "ViewFlipper"

    invoke-virtual {v0, v1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_0

    new-instance v0, Ljava/lang/StringBuilder;

    const-string v1, "duration:2000;"

    invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v0, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object p2

    .end local p2    # "style":Ljava/lang/String;
    invoke-virtual {p2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p2

    .restart local p2    # "style":Ljava/lang/String;
    goto/16 :goto_0

    .line 580
    :cond_34
    iget-object v0, p1, Lrexsee/natives/ViewTag;->type:Ljava/lang/String;

    const-string v1, "Div"

    invoke-virtual {v0, v1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_35

    .line 581
    iget-object v0, p1, Lrexsee/natives/ViewTag;->view:Landroid/view/View;

    check-cast v0, Lrexsee/core/widget/Div;

    invoke-virtual {v0, p2}, Lrexsee/core/widget/Div;->setStyle(Ljava/lang/String;)V

    goto/16 :goto_1

    .line 582
    :cond_35
    iget-object v0, p1, Lrexsee/natives/ViewTag;->type:Ljava/lang/String;

    const-string v1, "Label"

    invoke-virtual {v0, v1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v0

    if-nez v0, :cond_36

    iget-object v0, p1, Lrexsee/natives/ViewTag;->type:Ljava/lang/String;

    const-string v1, "LabelDiv"

    invoke-virtual {v0, v1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_37

    .line 583
    :cond_36
    iget-object v0, p1, Lrexsee/natives/ViewTag;->view:Landroid/view/View;

    check-cast v0, Lrexsee/core/widget/LabelDiv;

    invoke-virtual {v0, p2}, Lrexsee/core/widget/LabelDiv;->setStyle(Ljava/lang/String;)V

    goto/16 :goto_1

    .line 584
    :cond_37
    iget-object v0, p1, Lrexsee/natives/ViewTag;->type:Ljava/lang/String;

    const-string v1, "Progress"

    invoke-virtual {v0, v1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v0

    if-nez v0, :cond_38

    iget-object v0, p1, Lrexsee/natives/ViewTag;->type:Ljava/lang/String;

    const-string v1, "ProgressDiv"

    invoke-virtual {v0, v1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_39

    .line 585
    :cond_38
    iget-object v0, p1, Lrexsee/natives/ViewTag;->view:Landroid/view/View;

    check-cast v0, Lrexsee/core/widget/ProgressDiv;

    invoke-virtual {v0, p2}, Lrexsee/core/widget/ProgressDiv;->setStyle(Ljava/lang/String;)V

    goto/16 :goto_1

    .line 587
    :cond_39
    iget-object p2, p1, Lrexsee/natives/ViewTag;->view:Landroid/view/View;

    .end local p2    # "style":Ljava/lang/String;
    iget-object v0, p1, Lrexsee/natives/ViewTag;->style:Lrexsee/core/style/StyleSheet;

    invoke-static {p0, p2, v0}, Lrexsee/natives/ViewStyle;->setViewStyle(Lrexsee/core/browser/Browser;Landroid/view/View;Lrexsee/core/style/StyleSheet;)V

    goto/16 :goto_1

    .line 594
    :cond_3a
    iget-object p2, p1, Lrexsee/natives/ViewTag;->style:Lrexsee/core/style/StyleSheet;

    iget-object p2, p2, Lrexsee/core/style/StyleSheet;->position:Ljava/lang/String;

    const-string v0, "relative"

    invoke-virtual {p2, v0}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result p2

    if-eqz p2, :cond_3b

    .line 595
    iget-object p2, p1, Lrexsee/natives/ViewTag;->view:Landroid/view/View;

    iget-object v0, p1, Lrexsee/natives/ViewTag;->style:Lrexsee/core/style/StyleSheet;

    iget-object v0, v0, Lrexsee/core/style/StyleSheet;->min_width:Ljava/lang/String;

    const/4 v1, 0x0

    invoke-static {v0, v1}, Lrexsee/core/utilities/Utilities;->getInt(Ljava/lang/String;I)I

    move-result v0

    invoke-virtual {p2, v0}, Landroid/view/View;->setMinimumWidth(I)V

    .line 596
    iget-object p2, p1, Lrexsee/natives/ViewTag;->view:Landroid/view/View;

    iget-object v0, p1, Lrexsee/natives/ViewTag;->style:Lrexsee/core/style/StyleSheet;

    iget-object v0, v0, Lrexsee/core/style/StyleSheet;->min_height:Ljava/lang/String;

    const/4 v1, 0x0

    invoke-static {v0, v1}, Lrexsee/core/utilities/Utilities;->getInt(Ljava/lang/String;I)I

    move-result v0

    invoke-virtual {p2, v0}, Landroid/view/View;->setMinimumHeight(I)V

    .line 597
    iget-object p2, p1, Lrexsee/natives/ViewTag;->view:Landroid/view/View;

    iget-object v0, p1, Lrexsee/natives/ViewTag;->style:Lrexsee/core/style/StyleSheet;

    invoke-virtual {v0}, Lrexsee/core/style/StyleSheet;->getWidth()I

    move-result v0

    iget-object v1, p1, Lrexsee/natives/ViewTag;->style:Lrexsee/core/style/StyleSheet;

    invoke-virtual {v1}, Lrexsee/core/style/StyleSheet;->getHeight()I

    move-result v1

    iget-object v2, p1, Lrexsee/natives/ViewTag;->style:Lrexsee/core/style/StyleSheet;

    iget-object v2, v2, Lrexsee/core/style/StyleSheet;->left:Ljava/lang/String;

    iget-object v3, p1, Lrexsee/natives/ViewTag;->style:Lrexsee/core/style/StyleSheet;

    iget-object v3, v3, Lrexsee/core/style/StyleSheet;->top:Ljava/lang/String;

    invoke-static {p3, v0, v1, v2, v3}, Lrexsee/natives/ViewStyle;->getRelativeLayoutParams(Lrexsee/natives/RexseeJavaView;IILjava/lang/String;Ljava/lang/String;)Landroid/widget/RelativeLayout$LayoutParams;

    move-result-object p3

    .end local p3    # "javaView":Lrexsee/natives/RexseeJavaView;
    invoke-virtual {p2, p3}, Landroid/view/View;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    goto/16 :goto_2

    .line 598
    .restart local p3    # "javaView":Lrexsee/natives/RexseeJavaView;
    :cond_3b
    iget-object p2, p1, Lrexsee/natives/ViewTag;->style:Lrexsee/core/style/StyleSheet;

    iget-object p2, p2, Lrexsee/core/style/StyleSheet;->position:Ljava/lang/String;

    const-string p3, "table"

    .end local p3    # "javaView":Lrexsee/natives/RexseeJavaView;
    invoke-virtual {p2, p3}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result p2

    if-eqz p2, :cond_3e

    .line 599
    iget-object p2, p1, Lrexsee/natives/ViewTag;->view:Landroid/view/View;

    iget-object p3, p1, Lrexsee/natives/ViewTag;->style:Lrexsee/core/style/StyleSheet;

    iget-object p3, p3, Lrexsee/core/style/StyleSheet;->min_width:Ljava/lang/String;

    const/4 v0, 0x0

    invoke-static {p3, v0}, Lrexsee/core/utilities/Utilities;->getInt(Ljava/lang/String;I)I

    move-result p3

    invoke-virtual {p2, p3}, Landroid/view/View;->setMinimumWidth(I)V

    .line 600
    iget-object p2, p1, Lrexsee/natives/ViewTag;->view:Landroid/view/View;

    iget-object p3, p1, Lrexsee/natives/ViewTag;->style:Lrexsee/core/style/StyleSheet;

    iget-object p3, p3, Lrexsee/core/style/StyleSheet;->min_height:Ljava/lang/String;

    const/4 v0, 0x0

    invoke-static {p3, v0}, Lrexsee/core/utilities/Utilities;->getInt(Ljava/lang/String;I)I

    move-result p3

    invoke-virtual {p2, p3}, Landroid/view/View;->setMinimumHeight(I)V

    .line 601
    new-instance p3, Landroid/widget/TableRow$LayoutParams;

    iget-object p2, p1, Lrexsee/natives/ViewTag;->style:Lrexsee/core/style/StyleSheet;

    invoke-virtual {p2}, Lrexsee/core/style/StyleSheet;->getWidth()I

    move-result p2

    iget-object v0, p1, Lrexsee/natives/ViewTag;->style:Lrexsee/core/style/StyleSheet;

    invoke-virtual {v0}, Lrexsee/core/style/StyleSheet;->getHeight()I

    move-result v0

    invoke-direct {p3, p2, v0}, Landroid/widget/TableRow$LayoutParams;-><init>(II)V

    .line 602
    .local p3, "layoutParams":Landroid/widget/TableRow$LayoutParams;
    iget-object p2, p1, Lrexsee/natives/ViewTag;->style:Lrexsee/core/style/StyleSheet;

    iget-object p2, p2, Lrexsee/core/style/StyleSheet;->index:Ljava/lang/String;

    const/4 v0, -0x1

    invoke-static {p2, v0}, Lrexsee/core/utilities/Utilities;->getInt(Ljava/lang/String;I)I

    move-result p2

    .line 603
    .local p2, "index":I
    if-ltz p2, :cond_3c

    iput p2, p3, Landroid/widget/TableRow$LayoutParams;->column:I

    .line 604
    :cond_3c
    iget-object p2, p1, Lrexsee/natives/ViewTag;->style:Lrexsee/core/style/StyleSheet;

    .end local p2    # "index":I
    iget-object p2, p2, Lrexsee/core/style/StyleSheet;->column_span:Ljava/lang/String;

    const/4 v0, 0x0

    invoke-static {p2, v0}, Lrexsee/core/utilities/Utilities;->getInt(Ljava/lang/String;I)I

    move-result p2

    .line 605
    .local p2, "span":I
    const/4 v0, 0x1

    if-le p2, v0, :cond_3d

    iput p2, p3, Landroid/widget/TableRow$LayoutParams;->span:I

    .line 606
    :cond_3d
    iget-object p2, p1, Lrexsee/natives/ViewTag;->view:Landroid/view/View;

    .end local p2    # "span":I
    invoke-virtual {p2, p3}, Landroid/view/View;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    goto/16 :goto_2

    .line 608
    .end local p3    # "layoutParams":Landroid/widget/TableRow$LayoutParams;
    :cond_3e
    iget-object p2, p1, Lrexsee/natives/ViewTag;->view:Landroid/view/View;

    invoke-virtual {p2}, Landroid/view/View;->getParent()Landroid/view/ViewParent;

    move-result-object p2

    if-nez p2, :cond_2

    .line 609
    iget-object p2, p1, Lrexsee/natives/ViewTag;->view:Landroid/view/View;

    iget-object p3, p1, Lrexsee/natives/ViewTag;->style:Lrexsee/core/style/StyleSheet;

    iget-object p3, p3, Lrexsee/core/style/StyleSheet;->min_width:Ljava/lang/String;

    const/4 v0, 0x0

    invoke-static {p3, v0}, Lrexsee/core/utilities/Utilities;->getInt(Ljava/lang/String;I)I

    move-result p3

    invoke-virtual {p2, p3}, Landroid/view/View;->setMinimumWidth(I)V

    .line 610
    iget-object p2, p1, Lrexsee/natives/ViewTag;->view:Landroid/view/View;

    iget-object p3, p1, Lrexsee/natives/ViewTag;->style:Lrexsee/core/style/StyleSheet;

    iget-object p3, p3, Lrexsee/core/style/StyleSheet;->min_height:Ljava/lang/String;

    const/4 v0, 0x0

    invoke-static {p3, v0}, Lrexsee/core/utilities/Utilities;->getInt(Ljava/lang/String;I)I

    move-result p3

    invoke-virtual {p2, p3}, Landroid/view/View;->setMinimumHeight(I)V

    .line 611
    iget-object p2, p1, Lrexsee/natives/ViewTag;->view:Landroid/view/View;

    iget-object p3, p1, Lrexsee/natives/ViewTag;->style:Lrexsee/core/style/StyleSheet;

    invoke-virtual {p3}, Lrexsee/core/style/StyleSheet;->getLayoutParams()Landroid/widget/LinearLayout$LayoutParams;

    move-result-object p3

    invoke-virtual {p2, p3}, Landroid/view/View;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    goto/16 :goto_2

    .line 624
    .local p2, "videoView":Lrexsee/multimedia/VideoView;
    :cond_3f
    const/4 p3, 0x1

    goto/16 :goto_3

    .line 630
    .end local p2    # "videoView":Lrexsee/multimedia/VideoView;
    :catch_0
    move-exception p2

    .line 631
    .local p2, "e":Ljava/lang/Exception;
    const-string p3, "SetStyle/VideoView"

    invoke-virtual {p0, p3, p2}, Lrexsee/core/browser/Browser;->exception(Ljava/lang/String;Ljava/lang/Exception;)V

    goto/16 :goto_4

    .line 637
    .local p2, "linearLayout":Landroid/widget/LinearLayout;
    :cond_40
    const/4 p3, 0x1

    goto/16 :goto_5

    .line 639
    .end local p2    # "linearLayout":Landroid/widget/LinearLayout;
    :catch_1
    move-exception p2

    .line 640
    .local p2, "e":Ljava/lang/Exception;
    const-string p3, "SetStyle/LinearLayout"

    invoke-virtual {p0, p3, p2}, Lrexsee/core/browser/Browser;->exception(Ljava/lang/String;Ljava/lang/Exception;)V

    goto/16 :goto_6

    .line 648
    .end local p2    # "e":Ljava/lang/Exception;
    :catch_2
    move-exception p2

    .line 649
    .restart local p2    # "e":Ljava/lang/Exception;
    const-string p3, "SetStyle/Chronometer"

    invoke-virtual {p0, p3, p2}, Lrexsee/core/browser/Browser;->exception(Ljava/lang/String;Ljava/lang/Exception;)V

    goto/16 :goto_7

    .line 660
    .local p2, "progress":Landroid/graphics/drawable/Drawable;
    .local p3, "progressBar":Landroid/widget/ProgressBar;
    :cond_41
    const/4 v0, 0x0

    :try_start_d
    invoke-virtual {p3, v0}, Landroid/widget/ProgressBar;->setIndeterminate(Z)V

    .line 661
    if-eqz p2, :cond_42

    invoke-virtual {p3, p2}, Landroid/widget/ProgressBar;->setProgressDrawable(Landroid/graphics/drawable/Drawable;)V

    .line 662
    :cond_42
    iget-object p2, p1, Lrexsee/natives/ViewTag;->style:Lrexsee/core/style/StyleSheet;

    .end local p2    # "progress":Landroid/graphics/drawable/Drawable;
    iget-object p2, p2, Lrexsee/core/style/StyleSheet;->progress:Ljava/lang/String;

    const-string v0, "%"

    const-string v1, ""

    invoke-virtual {p2, v0, v1}, Ljava/lang/String;->replace(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;

    move-result-object p2

    invoke-virtual {p2}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object p2

    const/4 v0, 0x0

    invoke-static {p2, v0}, Lrexsee/core/utilities/Utilities;->getInt(Ljava/lang/String;I)I

    move-result p2

    .line 663
    .local p2, "p":I
    if-gez p2, :cond_43

    const/4 p2, 0x0

    .line 664
    :cond_43
    const/16 v0, 0x64

    if-le p2, v0, :cond_44

    const/16 p2, 0x64

    .line 665
    :cond_44
    invoke-virtual {p3, p2}, Landroid/widget/ProgressBar;->setProgress(I)V
    :try_end_d
    .catch Ljava/lang/Exception; {:try_start_d .. :try_end_d} :catch_3

    goto/16 :goto_8

    .line 667
    .end local p2    # "p":I
    .end local p3    # "progressBar":Landroid/widget/ProgressBar;
    :catch_3
    move-exception p2

    .line 668
    .local p2, "e":Ljava/lang/Exception;
    const-string p3, "SetStyle/ProgressBar"

    invoke-virtual {p0, p3, p2}, Lrexsee/core/browser/Browser;->exception(Ljava/lang/String;Ljava/lang/Exception;)V

    goto/16 :goto_8

    .line 680
    .end local p2    # "e":Ljava/lang/Exception;
    :catch_4
    move-exception p2

    .line 681
    .restart local p2    # "e":Ljava/lang/Exception;
    const-string p3, "SetStyle/SeekBar"

    invoke-virtual {p0, p3, p2}, Lrexsee/core/browser/Browser;->exception(Ljava/lang/String;Ljava/lang/Exception;)V

    goto/16 :goto_9

    .line 692
    .end local p2    # "e":Ljava/lang/Exception;
    :catch_5
    move-exception p2

    .line 693
    .restart local p2    # "e":Ljava/lang/Exception;
    const-string p3, "SetStyle/RatingBar"

    invoke-virtual {p0, p3, p2}, Lrexsee/core/browser/Browser;->exception(Ljava/lang/String;Ljava/lang/Exception;)V

    goto/16 :goto_a

    .line 702
    .local p2, "spinner":Landroid/widget/Spinner;
    :cond_45
    :try_start_e
    iget-object p3, p1, Lrexsee/natives/ViewTag;->style:Lrexsee/core/style/StyleSheet;

    iget-object p3, p3, Lrexsee/core/style/StyleSheet;->label_type:Ljava/lang/String;

    const-string v0, "string"

    invoke-virtual {p3, v0}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result p3

    if-eqz p3, :cond_46

    .line 703
    iget-object p3, p1, Lrexsee/natives/ViewTag;->style:Lrexsee/core/style/StyleSheet;

    iget-object p3, p3, Lrexsee/core/style/StyleSheet;->label:Ljava/lang/String;

    invoke-static {p3}, Landroid/text/Html;->fromHtml(Ljava/lang/String;)Landroid/text/Spanned;

    move-result-object p3

    invoke-interface {p3}, Landroid/text/Spanned;->toString()Ljava/lang/String;

    move-result-object p3

    invoke-virtual {p2, p3}, Landroid/widget/Spinner;->setPrompt(Ljava/lang/CharSequence;)V
    :try_end_e
    .catch Ljava/lang/Exception; {:try_start_e .. :try_end_e} :catch_6

    goto/16 :goto_b

    .line 708
    .end local p2    # "spinner":Landroid/widget/Spinner;
    :catch_6
    move-exception p2

    .line 709
    .local p2, "e":Ljava/lang/Exception;
    const-string p3, "SetStyle/Spinner"

    invoke-virtual {p0, p3, p2}, Lrexsee/core/browser/Browser;->exception(Ljava/lang/String;Ljava/lang/Exception;)V

    goto/16 :goto_b

    .line 705
    .local p2, "spinner":Landroid/widget/Spinner;
    :cond_46
    :try_start_f
    iget-object p3, p1, Lrexsee/natives/ViewTag;->style:Lrexsee/core/style/StyleSheet;

    iget-object p3, p3, Lrexsee/core/style/StyleSheet;->label:Ljava/lang/String;

    invoke-virtual {p2, p3}, Landroid/widget/Spinner;->setPrompt(Ljava/lang/CharSequence;)V
    :try_end_f
    .catch Ljava/lang/Exception; {:try_start_f .. :try_end_f} :catch_6

    goto/16 :goto_b

    .line 719
    .end local p2    # "spinner":Landroid/widget/Spinner;
    :catch_7
    move-exception p2

    .line 720
    .local p2, "e":Ljava/lang/Exception;
    const-string p3, "SetStyle/Gallery"

    invoke-virtual {p0, p3, p2}, Lrexsee/core/browser/Browser;->exception(Ljava/lang/String;Ljava/lang/Exception;)V

    goto/16 :goto_c

    .line 735
    .end local p2    # "e":Ljava/lang/Exception;
    :catch_8
    move-exception p2

    .line 736
    .restart local p2    # "e":Ljava/lang/Exception;
    const-string p3, "SetStyle/In and out animation."

    invoke-virtual {p0, p3, p2}, Lrexsee/core/browser/Browser;->exception(Ljava/lang/String;Ljava/lang/Exception;)V

    goto/16 :goto_d

    .line 747
    .end local p2    # "e":Ljava/lang/Exception;
    :catch_9
    move-exception p2

    .line 748
    .restart local p2    # "e":Ljava/lang/Exception;
    const-string p3, "SetStyle/GridView"

    invoke-virtual {p0, p3, p2}, Lrexsee/core/browser/Browser;->exception(Ljava/lang/String;Ljava/lang/Exception;)V

    goto/16 :goto_e

    .line 758
    .local p2, "gridView":Landroid/widget/GridView;
    :cond_47
    :try_start_10
    iget-object p3, p1, Lrexsee/natives/ViewTag;->style:Lrexsee/core/style/StyleSheet;

    iget-object p3, p3, Lrexsee/core/style/StyleSheet;->format:Ljava/lang/String;

    const-string v0, "STRETCH_SPACING_UNIFORM"

    invoke-virtual {p3, v0}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result p3

    if-eqz p3, :cond_48

    .line 759
    const/4 p3, 0x3

    .local p3, "stretch":I
    goto/16 :goto_f

    .line 760
    .end local p3    # "stretch":I
    :cond_48
    iget-object p3, p1, Lrexsee/natives/ViewTag;->style:Lrexsee/core/style/StyleSheet;

    iget-object p3, p3, Lrexsee/core/style/StyleSheet;->format:Ljava/lang/String;

    const-string v0, "STRETCH_COLUMN_WIDTH"

    invoke-virtual {p3, v0}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z
    :try_end_10
    .catch Ljava/lang/Exception; {:try_start_10 .. :try_end_10} :catch_a

    move-result p3

    if-eqz p3, :cond_49

    .line 761
    const/4 p3, 0x2

    .restart local p3    # "stretch":I
    goto/16 :goto_f

    .line 763
    .end local p3    # "stretch":I
    :cond_49
    const/4 p3, 0x0

    .restart local p3    # "stretch":I
    goto/16 :goto_f

    .line 767
    .local p3, "numOfColumns":I
    :cond_4a
    const/4 p3, -0x1

    goto/16 :goto_10

    .line 771
    .end local p2    # "gridView":Landroid/widget/GridView;
    .end local p3    # "numOfColumns":I
    :catch_a
    move-exception p2

    .line 772
    .local p2, "e":Ljava/lang/Exception;
    const-string p3, "SetStyle/GridView"

    invoke-virtual {p0, p3, p2}, Lrexsee/core/browser/Browser;->exception(Ljava/lang/String;Ljava/lang/Exception;)V

    goto/16 :goto_11

    .line 780
    .local p2, "pickerGroup":Landroid/view/ViewGroup;
    .local p3, "visibility":[Ljava/lang/String;
    :cond_4b
    const/4 v1, 0x0

    goto/16 :goto_12

    .line 781
    :cond_4c
    const/4 v1, 0x0

    goto/16 :goto_13

    .line 782
    .end local p2    # "pickerGroup":Landroid/view/ViewGroup;
    .end local p3    # "visibility":[Ljava/lang/String;
    :cond_4d
    const/4 p3, 0x0

    goto/16 :goto_14

    .line 787
    .local p2, "enable":[Ljava/lang/String;
    .local p3, "pickerGroup":Landroid/view/ViewGroup;
    :cond_4e
    const/4 v1, 0x1

    goto/16 :goto_15

    .line 788
    :cond_4f
    const/4 v1, 0x1

    goto/16 :goto_16

    .line 789
    .end local p2    # "enable":[Ljava/lang/String;
    .end local p3    # "pickerGroup":Landroid/view/ViewGroup;
    :cond_50
    const/4 p2, 0x1

    goto/16 :goto_17

    .line 791
    :catch_b
    move-exception p2

    .line 792
    .local p2, "e":Ljava/lang/Exception;
    const-string p3, "SetStyle/DatePicker"

    invoke-virtual {p0, p3, p2}, Lrexsee/core/browser/Browser;->exception(Ljava/lang/String;Ljava/lang/Exception;)V

    goto/16 :goto_18

    .line 797
    .end local p2    # "e":Ljava/lang/Exception;
    :cond_51
    const/4 p3, 0x1

    goto/16 :goto_19

    .line 801
    .local p2, "pickerGroup":Landroid/view/ViewGroup;
    .local p3, "visibility":[Ljava/lang/String;
    :cond_52
    const/4 v1, 0x0

    goto/16 :goto_1a

    .line 802
    .end local p2    # "pickerGroup":Landroid/view/ViewGroup;
    .end local p3    # "visibility":[Ljava/lang/String;
    :cond_53
    const/4 p3, 0x0

    goto/16 :goto_1b

    .line 807
    .local p2, "enable":[Ljava/lang/String;
    .local p3, "pickerGroup":Landroid/view/ViewGroup;
    :cond_54
    const/4 v1, 0x1

    goto/16 :goto_1c

    .line 808
    .end local p2    # "enable":[Ljava/lang/String;
    .end local p3    # "pickerGroup":Landroid/view/ViewGroup;
    :cond_55
    const/4 p2, 0x1

    goto/16 :goto_1d

    .line 810
    :catch_c
    move-exception p2

    .line 811
    .local p2, "e":Ljava/lang/Exception;
    const-string p3, "SetStyle/DatePicker"

    invoke-virtual {p0, p3, p2}, Lrexsee/core/browser/Browser;->exception(Ljava/lang/String;Ljava/lang/Exception;)V

    goto/16 :goto_1e
.end method

.method public static setSurfaceViewStyle(Lrexsee/core/browser/Browser;Landroid/view/SurfaceView;Lrexsee/core/style/StyleSheet;)V
    .locals 5
    .param p0, "browser"    # Lrexsee/core/browser/Browser;
    .param p1, "surfaceView"    # Landroid/view/SurfaceView;
    .param p2, "style"    # Lrexsee/core/style/StyleSheet;

    .prologue
    .line 1003
    :try_start_0
    iget-object v3, p2, Lrexsee/core/style/StyleSheet;->mode:Ljava/lang/String;

    const-string v4, "ZOrderOnTop"

    invoke-virtual {v3, v4}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v3

    if-eqz v3, :cond_1

    .line 1004
    const/4 v3, 0x1

    invoke-virtual {p1, v3}, Landroid/view/SurfaceView;->setZOrderOnTop(Z)V

    .line 1005
    const/4 v3, 0x0

    invoke-virtual {p1, v3}, Landroid/view/SurfaceView;->setZOrderMediaOverlay(Z)V

    .line 1016
    :goto_0
    iget-object v3, p2, Lrexsee/core/style/StyleSheet;->format:Ljava/lang/String;

    invoke-virtual {v3}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v2

    .line 1018
    .local v2, "stringFormat":Ljava/lang/String;
    const-string v3, ""

    invoke-virtual {v2, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v3

    if-nez v3, :cond_0

    const-string v3, "default"

    invoke-virtual {v2, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v3

    if-eqz v3, :cond_4

    .line 1061
    .end local v2    # "stringFormat":Ljava/lang/String;
    :cond_0
    :goto_1
    return-void

    .line 1006
    :cond_1
    iget-object v3, p2, Lrexsee/core/style/StyleSheet;->mode:Ljava/lang/String;

    const-string v4, "ZOrderMediaOverlay"

    invoke-virtual {v3, v4}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v3

    if-eqz v3, :cond_2

    .line 1007
    const/4 v3, 0x0

    invoke-virtual {p1, v3}, Landroid/view/SurfaceView;->setZOrderOnTop(Z)V

    .line 1008
    const/4 v3, 0x1

    invoke-virtual {p1, v3}, Landroid/view/SurfaceView;->setZOrderMediaOverlay(Z)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    .line 1058
    :catch_0
    move-exception v3

    move-object v0, v3

    .line 1059
    .local v0, "e":Ljava/lang/Exception;
    const-string v3, "SetStyle/LinearLayout"

    invoke-virtual {p0, v3, v0}, Lrexsee/core/browser/Browser;->exception(Ljava/lang/String;Ljava/lang/Exception;)V

    goto :goto_1

    .line 1009
    .end local v0    # "e":Ljava/lang/Exception;
    :cond_2
    :try_start_1
    iget-object v3, p2, Lrexsee/core/style/StyleSheet;->mode:Ljava/lang/String;

    const-string v4, "ZOrderOnTopAndMediaOverlay"

    invoke-virtual {v3, v4}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v3

    if-eqz v3, :cond_3

    .line 1010
    const/4 v3, 0x1

    invoke-virtual {p1, v3}, Landroid/view/SurfaceView;->setZOrderOnTop(Z)V

    .line 1011
    const/4 v3, 0x1

    invoke-virtual {p1, v3}, Landroid/view/SurfaceView;->setZOrderMediaOverlay(Z)V

    goto :goto_0

    .line 1013
    :cond_3
    const/4 v3, 0x0

    invoke-virtual {p1, v3}, Landroid/view/SurfaceView;->setZOrderOnTop(Z)V

    .line 1014
    const/4 v3, 0x0

    invoke-virtual {p1, v3}, Landroid/view/SurfaceView;->setZOrderMediaOverlay(Z)V

    goto :goto_0

    .line 1020
    .restart local v2    # "stringFormat":Ljava/lang/String;
    :cond_4
    const-string v3, "A_8"

    invoke-virtual {v2, v3}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v3

    if-eqz v3, :cond_5

    .line 1021
    const/16 v1, 0x8

    .line 1057
    .local v1, "format":I
    :goto_2
    invoke-virtual {p1}, Landroid/view/SurfaceView;->getHolder()Landroid/view/SurfaceHolder;

    move-result-object v3

    invoke-interface {v3, v1}, Landroid/view/SurfaceHolder;->setFormat(I)V

    goto :goto_1

    .line 1022
    .end local v1    # "format":I
    :cond_5
    const-string v3, "JPEG"

    invoke-virtual {v2, v3}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v3

    if-eqz v3, :cond_6

    .line 1023
    const/16 v1, 0x100

    .restart local v1    # "format":I
    goto :goto_2

    .line 1024
    .end local v1    # "format":I
    :cond_6
    const-string v3, "L_8"

    invoke-virtual {v2, v3}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v3

    if-eqz v3, :cond_7

    .line 1025
    const/16 v1, 0x9

    .restart local v1    # "format":I
    goto :goto_2

    .line 1026
    .end local v1    # "format":I
    :cond_7
    const-string v3, "LA_88"

    invoke-virtual {v2, v3}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v3

    if-eqz v3, :cond_8

    .line 1027
    const/16 v1, 0xa

    .restart local v1    # "format":I
    goto :goto_2

    .line 1028
    .end local v1    # "format":I
    :cond_8
    const-string v3, "OPAQUE"

    invoke-virtual {v2, v3}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v3

    if-eqz v3, :cond_9

    .line 1029
    const/4 v1, -0x1

    .restart local v1    # "format":I
    goto :goto_2

    .line 1030
    .end local v1    # "format":I
    :cond_9
    const-string v3, "RGB_332"

    invoke-virtual {v2, v3}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v3

    if-eqz v3, :cond_a

    .line 1031
    const/16 v1, 0xb

    .restart local v1    # "format":I
    goto :goto_2

    .line 1032
    .end local v1    # "format":I
    :cond_a
    const-string v3, "RGB_565"

    invoke-virtual {v2, v3}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v3

    if-eqz v3, :cond_b

    .line 1033
    const/4 v1, 0x4

    .restart local v1    # "format":I
    goto :goto_2

    .line 1034
    .end local v1    # "format":I
    :cond_b
    const-string v3, "RGB_888"

    invoke-virtual {v2, v3}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v3

    if-eqz v3, :cond_c

    .line 1035
    const/4 v1, 0x3

    .restart local v1    # "format":I
    goto :goto_2

    .line 1036
    .end local v1    # "format":I
    :cond_c
    const-string v3, "RGBA_4444"

    invoke-virtual {v2, v3}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v3

    if-eqz v3, :cond_d

    .line 1037
    const/4 v1, 0x7

    .restart local v1    # "format":I
    goto :goto_2

    .line 1038
    .end local v1    # "format":I
    :cond_d
    const-string v3, "RGBA_5551"

    invoke-virtual {v2, v3}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v3

    if-eqz v3, :cond_e

    .line 1039
    const/4 v1, 0x6

    .restart local v1    # "format":I
    goto :goto_2

    .line 1040
    .end local v1    # "format":I
    :cond_e
    const-string v3, "RGBA_8888"

    invoke-virtual {v2, v3}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v3

    if-eqz v3, :cond_f

    .line 1041
    const/4 v1, 0x1

    .restart local v1    # "format":I
    goto :goto_2

    .line 1042
    .end local v1    # "format":I
    :cond_f
    const-string v3, "RGBX_8888"

    invoke-virtual {v2, v3}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v3

    if-eqz v3, :cond_10

    .line 1043
    const/4 v1, 0x2

    .restart local v1    # "format":I
    goto :goto_2

    .line 1044
    .end local v1    # "format":I
    :cond_10
    const-string v3, "TRANSLUCENT"

    invoke-virtual {v2, v3}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v3

    if-eqz v3, :cond_11

    .line 1045
    const/4 v1, -0x3

    .restart local v1    # "format":I
    goto/16 :goto_2

    .line 1046
    .end local v1    # "format":I
    :cond_11
    const-string v3, "TRANSPARENT"

    invoke-virtual {v2, v3}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v3

    if-eqz v3, :cond_12

    .line 1047
    const/4 v1, -0x2

    .restart local v1    # "format":I
    goto/16 :goto_2

    .line 1048
    .end local v1    # "format":I
    :cond_12
    const-string v3, "YCbCr_420_SP"

    invoke-virtual {v2, v3}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v3

    if-nez v3, :cond_13

    const-string v3, "NV21"

    invoke-virtual {v2, v3}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v3

    if-eqz v3, :cond_14

    .line 1049
    :cond_13
    const/16 v1, 0x11

    .restart local v1    # "format":I
    goto/16 :goto_2

    .line 1050
    .end local v1    # "format":I
    :cond_14
    const-string v3, "YCbCr_422_I"

    invoke-virtual {v2, v3}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v3

    if-nez v3, :cond_15

    const-string v3, "YUY2"

    invoke-virtual {v2, v3}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v3

    if-eqz v3, :cond_16

    .line 1051
    :cond_15
    const/16 v1, 0x14

    .restart local v1    # "format":I
    goto/16 :goto_2

    .line 1052
    .end local v1    # "format":I
    :cond_16
    const-string v3, "YCbCr_422_SP"

    invoke-virtual {v2, v3}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v3

    if-nez v3, :cond_17

    const-string v3, "NV16"

    invoke-virtual {v2, v3}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0

    move-result v3

    if-eqz v3, :cond_0

    .line 1053
    :cond_17
    const/16 v1, 0x10

    .restart local v1    # "format":I
    goto/16 :goto_2
.end method

.method public static setTextViewStyle(Lrexsee/core/browser/Browser;Landroid/widget/TextView;Lrexsee/core/style/StyleSheet;)V
    .locals 11
    .param p0, "browser"    # Lrexsee/core/browser/Browser;
    .param p1, "textView"    # Landroid/widget/TextView;
    .param p2, "style"    # Lrexsee/core/style/StyleSheet;

    .prologue
    const/4 v10, 0x1

    const/4 v9, 0x0

    const-string v4, "px"

    const-string v4, ""

    .line 878
    :try_start_0
    iget-object v4, p2, Lrexsee/core/style/StyleSheet;->label_background_color:Ljava/lang/String;

    const/4 v5, 0x0

    invoke-static {p0, v4, v5}, Lrexsee/core/style/RexseeDrawable;->getDrawable(Lrexsee/core/browser/Browser;Ljava/lang/String;Landroid/graphics/drawable/Drawable;)Landroid/graphics/drawable/Drawable;

    move-result-object v0

    .line 879
    .local v0, "bg":Landroid/graphics/drawable/Drawable;
    if-eqz v0, :cond_0

    invoke-virtual {p1, v0}, Landroid/widget/TextView;->setBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V

    .line 880
    :cond_0
    invoke-virtual {p2}, Lrexsee/core/style/StyleSheet;->getLabelPaddingLeft()I

    move-result v4

    invoke-virtual {p2}, Lrexsee/core/style/StyleSheet;->getLabelPaddingTop()I

    move-result v5

    invoke-virtual {p2}, Lrexsee/core/style/StyleSheet;->getLabelPaddingRight()I

    move-result v6

    invoke-virtual {p2}, Lrexsee/core/style/StyleSheet;->getLabelPaddingBottom()I

    move-result v7

    invoke-virtual {p1, v4, v5, v6, v7}, Landroid/widget/TextView;->setPadding(IIII)V

    .line 881
    iget-object v4, p2, Lrexsee/core/style/StyleSheet;->font_size:Ljava/lang/String;

    invoke-virtual {v4}, Ljava/lang/String;->toLowerCase()Ljava/lang/String;

    move-result-object v4

    const-string v5, "px"

    const-string v6, ""

    invoke-virtual {v4, v5, v6}, Ljava/lang/String;->replaceAll(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v4

    invoke-static {v4}, Ljava/lang/Float;->parseFloat(Ljava/lang/String;)F

    move-result v4

    invoke-virtual {p1, v4}, Landroid/widget/TextView;->setTextSize(F)V

    .line 882
    iget-object v4, p2, Lrexsee/core/style/StyleSheet;->color:Ljava/lang/String;

    invoke-static {v4}, Landroid/graphics/Color;->parseColor(Ljava/lang/String;)I

    move-result v4

    invoke-virtual {p1, v4}, Landroid/widget/TextView;->setTextColor(I)V

    .line 883
    const/4 v4, 0x0

    invoke-virtual {p2}, Lrexsee/core/style/StyleSheet;->getTypefaceStyle()I

    move-result v5

    invoke-virtual {p1, v4, v5}, Landroid/widget/TextView;->setTypeface(Landroid/graphics/Typeface;I)V

    .line 884
    invoke-virtual {p2}, Lrexsee/core/style/StyleSheet;->getTextGravity()I

    move-result v4

    invoke-virtual {p1, v4}, Landroid/widget/TextView;->setGravity(I)V

    .line 886
    iget-object v4, p2, Lrexsee/core/style/StyleSheet;->text_shadow_radius:Ljava/lang/String;

    invoke-static {v4}, Ljava/lang/Float;->parseFloat(Ljava/lang/String;)F

    move-result v4

    .line 887
    iget-object v5, p2, Lrexsee/core/style/StyleSheet;->text_shadow_dx:Ljava/lang/String;

    invoke-virtual {v5}, Ljava/lang/String;->toLowerCase()Ljava/lang/String;

    move-result-object v5

    const-string v6, "px"

    const-string v7, ""

    invoke-virtual {v5, v6, v7}, Ljava/lang/String;->replaceAll(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v5

    invoke-static {v5}, Ljava/lang/Float;->parseFloat(Ljava/lang/String;)F

    move-result v5

    .line 888
    iget-object v6, p2, Lrexsee/core/style/StyleSheet;->text_shadow_dy:Ljava/lang/String;

    invoke-virtual {v6}, Ljava/lang/String;->toLowerCase()Ljava/lang/String;

    move-result-object v6

    const-string v7, "px"

    const-string v8, ""

    invoke-virtual {v6, v7, v8}, Ljava/lang/String;->replaceAll(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v6

    invoke-static {v6}, Ljava/lang/Float;->parseFloat(Ljava/lang/String;)F

    move-result v6

    .line 889
    iget-object v7, p2, Lrexsee/core/style/StyleSheet;->text_shadow_color:Ljava/lang/String;

    invoke-static {v7}, Landroid/graphics/Color;->parseColor(Ljava/lang/String;)I

    move-result v7

    .line 885
    invoke-virtual {p1, v4, v5, v6, v7}, Landroid/widget/TextView;->setShadowLayer(FFFI)V

    .line 890
    iget-object v4, p2, Lrexsee/core/style/StyleSheet;->text_link:Ljava/lang/String;

    const-string v5, "autolink"

    invoke-virtual {v4, v5}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v4

    if-eqz v4, :cond_3

    const/16 v4, 0xf

    :goto_0
    invoke-virtual {p1, v4}, Landroid/widget/TextView;->setAutoLinkMask(I)V

    .line 891
    iget-object v4, p2, Lrexsee/core/style/StyleSheet;->text_overflow:Ljava/lang/String;

    const-string v5, "marquee"

    invoke-virtual {v4, v5}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v4

    if-eqz v4, :cond_4

    .line 892
    const/4 v4, 0x1

    invoke-virtual {p1, v4}, Landroid/widget/TextView;->setFocusable(Z)V

    .line 893
    const/4 v4, 0x1

    invoke-virtual {p1, v4}, Landroid/widget/TextView;->setHorizontallyScrolling(Z)V

    .line 894
    sget-object v4, Landroid/text/TextUtils$TruncateAt;->MARQUEE:Landroid/text/TextUtils$TruncateAt;

    invoke-virtual {p1, v4}, Landroid/widget/TextView;->setEllipsize(Landroid/text/TextUtils$TruncateAt;)V

    .line 895
    const/4 v4, -0x1

    invoke-virtual {p1, v4}, Landroid/widget/TextView;->setMarqueeRepeatLimit(I)V

    .line 896
    invoke-static {}, Landroid/text/method/ScrollingMovementMethod;->getInstance()Landroid/text/method/MovementMethod;

    move-result-object v4

    invoke-virtual {p1, v4}, Landroid/widget/TextView;->setMovementMethod(Landroid/text/method/MovementMethod;)V

    .line 909
    :goto_1
    iget-object v4, p2, Lrexsee/core/style/StyleSheet;->white_space:Ljava/lang/String;

    const-string v5, "nowrap"

    invoke-virtual {v4, v5}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v4

    if-eqz v4, :cond_8

    move v3, v10

    .line 910
    .local v3, "singleLine":Z
    :goto_2
    invoke-virtual {p1, v3}, Landroid/widget/TextView;->setSingleLine(Z)V

    .line 911
    if-nez v3, :cond_1

    .line 912
    iget-object v4, p2, Lrexsee/core/style/StyleSheet;->line_height:Ljava/lang/String;

    invoke-virtual {v4}, Ljava/lang/String;->toLowerCase()Ljava/lang/String;

    move-result-object v4

    const-string v5, "%"

    const-string v6, ""

    invoke-virtual {v4, v5, v6}, Ljava/lang/String;->replaceAll(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v4

    const/16 v5, 0x64

    invoke-static {v4, v5}, Lrexsee/core/utilities/Utilities;->getInt(Ljava/lang/String;I)I

    move-result v4

    int-to-float v4, v4

    const/high16 v5, 0x42c80000    # 100.0f

    div-float v2, v4, v5

    .line 913
    .local v2, "mult":F
    const/4 v4, 0x0

    invoke-virtual {p1, v4, v2}, Landroid/widget/TextView;->setLineSpacing(FF)V

    .line 915
    .end local v2    # "mult":F
    :cond_1
    iget-object v4, p2, Lrexsee/core/style/StyleSheet;->label_type:Ljava/lang/String;

    invoke-virtual {v4}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v4

    const-string v5, ""

    invoke-virtual {v4, v5}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v4

    if-nez v4, :cond_2

    .line 916
    iget-object v4, p2, Lrexsee/core/style/StyleSheet;->label_type:Ljava/lang/String;

    const-string v5, "html"

    invoke-virtual {v4, v5}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v4

    if-eqz v4, :cond_9

    .line 917
    iget-object v4, p2, Lrexsee/core/style/StyleSheet;->label:Ljava/lang/String;

    invoke-static {v4}, Landroid/text/Html;->fromHtml(Ljava/lang/String;)Landroid/text/Spanned;

    move-result-object v4

    invoke-virtual {p1, v4}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 927
    .end local v0    # "bg":Landroid/graphics/drawable/Drawable;
    .end local v3    # "singleLine":Z
    :cond_2
    :goto_3
    return-void

    .restart local v0    # "bg":Landroid/graphics/drawable/Drawable;
    :cond_3
    move v4, v9

    .line 890
    goto :goto_0

    .line 897
    :cond_4
    iget-object v4, p2, Lrexsee/core/style/StyleSheet;->text_overflow:Ljava/lang/String;

    const-string v5, "start"

    invoke-virtual {v4, v5}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v4

    if-eqz v4, :cond_5

    .line 898
    const/4 v4, 0x0

    invoke-virtual {p1, v4}, Landroid/widget/TextView;->setHorizontallyScrolling(Z)V

    .line 899
    sget-object v4, Landroid/text/TextUtils$TruncateAt;->START:Landroid/text/TextUtils$TruncateAt;

    invoke-virtual {p1, v4}, Landroid/widget/TextView;->setEllipsize(Landroid/text/TextUtils$TruncateAt;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_1

    .line 924
    .end local v0    # "bg":Landroid/graphics/drawable/Drawable;
    :catch_0
    move-exception v4

    move-object v1, v4

    .line 925
    .local v1, "e":Ljava/lang/Exception;
    const-string v4, "SetStyle/TextView"

    invoke-virtual {p0, v4, v1}, Lrexsee/core/browser/Browser;->exception(Ljava/lang/String;Ljava/lang/Exception;)V

    goto :goto_3

    .line 900
    .end local v1    # "e":Ljava/lang/Exception;
    .restart local v0    # "bg":Landroid/graphics/drawable/Drawable;
    :cond_5
    :try_start_1
    iget-object v4, p2, Lrexsee/core/style/StyleSheet;->text_overflow:Ljava/lang/String;

    const-string v5, "end"

    invoke-virtual {v4, v5}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v4

    if-eqz v4, :cond_6

    .line 901
    const/4 v4, 0x0

    invoke-virtual {p1, v4}, Landroid/widget/TextView;->setHorizontallyScrolling(Z)V

    .line 902
    sget-object v4, Landroid/text/TextUtils$TruncateAt;->END:Landroid/text/TextUtils$TruncateAt;

    invoke-virtual {p1, v4}, Landroid/widget/TextView;->setEllipsize(Landroid/text/TextUtils$TruncateAt;)V

    goto :goto_1

    .line 903
    :cond_6
    iget-object v4, p2, Lrexsee/core/style/StyleSheet;->text_overflow:Ljava/lang/String;

    const-string v5, "middle"

    invoke-virtual {v4, v5}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v4

    if-eqz v4, :cond_7

    .line 904
    const/4 v4, 0x0

    invoke-virtual {p1, v4}, Landroid/widget/TextView;->setHorizontallyScrolling(Z)V

    .line 905
    sget-object v4, Landroid/text/TextUtils$TruncateAt;->MIDDLE:Landroid/text/TextUtils$TruncateAt;

    invoke-virtual {p1, v4}, Landroid/widget/TextView;->setEllipsize(Landroid/text/TextUtils$TruncateAt;)V

    goto/16 :goto_1

    .line 907
    :cond_7
    const/4 v4, 0x0

    invoke-virtual {p1, v4}, Landroid/widget/TextView;->setHorizontallyScrolling(Z)V

    goto/16 :goto_1

    :cond_8
    move v3, v9

    .line 909
    goto/16 :goto_2

    .line 918
    .restart local v3    # "singleLine":Z
    :cond_9
    iget-object v4, p2, Lrexsee/core/style/StyleSheet;->label_type:Ljava/lang/String;

    const-string v5, "string"

    invoke-virtual {v4, v5}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v4

    if-eqz v4, :cond_a

    .line 919
    iget-object v4, p2, Lrexsee/core/style/StyleSheet;->label:Ljava/lang/String;

    invoke-static {v4}, Landroid/text/Html;->fromHtml(Ljava/lang/String;)Landroid/text/Spanned;

    move-result-object v4

    invoke-interface {v4}, Landroid/text/Spanned;->toString()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {p1, v4}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto :goto_3

    .line 921
    :cond_a
    iget-object v4, p2, Lrexsee/core/style/StyleSheet;->label:Ljava/lang/String;

    invoke-virtual {p1, v4}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0

    goto :goto_3
.end method

.method public static setViewStyle(Lrexsee/core/browser/Browser;Landroid/view/View;Lrexsee/core/style/StyleSheet;)V
    .locals 9
    .param p0, "browser"    # Lrexsee/core/browser/Browser;
    .param p1, "view"    # Landroid/view/View;
    .param p2, "style"    # Lrexsee/core/style/StyleSheet;

    .prologue
    const/4 v8, 0x0

    const/4 v7, 0x1

    const-string v3, "hidden"

    const-string v3, "visible"

    .line 820
    :try_start_0
    iget-object v3, p2, Lrexsee/core/style/StyleSheet;->visibility:Ljava/lang/String;

    const-string v4, "hidden"

    invoke-virtual {v3, v4}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v3

    if-nez v3, :cond_0

    iget-object v3, p2, Lrexsee/core/style/StyleSheet;->visibility:Ljava/lang/String;

    const-string v4, "gone"

    invoke-virtual {v3, v4}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v3

    if-eqz v3, :cond_5

    .line 821
    :cond_0
    const/16 v3, 0x8

    invoke-virtual {p1, v3}, Landroid/view/View;->setVisibility(I)V

    .line 827
    :goto_0
    iget-object v3, p2, Lrexsee/core/style/StyleSheet;->background_color:Ljava/lang/String;

    const/4 v4, 0x0

    invoke-static {p0, v3, v4}, Lrexsee/core/style/RexseeDrawable;->getDrawable(Lrexsee/core/browser/Browser;Ljava/lang/String;Landroid/graphics/drawable/Drawable;)Landroid/graphics/drawable/Drawable;

    move-result-object v0

    .line 828
    .local v0, "bg":Landroid/graphics/drawable/Drawable;
    if-eqz v0, :cond_1

    invoke-virtual {p1, v0}, Landroid/view/View;->setBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V

    .line 829
    :cond_1
    invoke-virtual {p2}, Lrexsee/core/style/StyleSheet;->getPaddingLeft()I

    move-result v3

    invoke-virtual {p2}, Lrexsee/core/style/StyleSheet;->getPaddingTop()I

    move-result v4

    invoke-virtual {p2}, Lrexsee/core/style/StyleSheet;->getPaddingRight()I

    move-result v5

    invoke-virtual {p2}, Lrexsee/core/style/StyleSheet;->getPaddingBottom()I

    move-result v6

    invoke-virtual {p1, v3, v4, v5, v6}, Landroid/view/View;->setPadding(IIII)V

    .line 830
    iget-object v3, p2, Lrexsee/core/style/StyleSheet;->overflow_x:Ljava/lang/String;

    const-string v4, "visible"

    invoke-virtual {v3, v4}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v3

    if-eqz v3, :cond_2

    .line 831
    const/4 v3, 0x1

    invoke-virtual {p1, v3}, Landroid/view/View;->setHorizontalFadingEdgeEnabled(Z)V

    .line 832
    iget-object v3, p2, Lrexsee/core/style/StyleSheet;->fading_edge_x_length:Ljava/lang/String;

    invoke-virtual {v3}, Ljava/lang/String;->toLowerCase()Ljava/lang/String;

    move-result-object v3

    const-string v4, "px"

    const-string v5, ""

    invoke-virtual {v3, v4, v5}, Ljava/lang/String;->replaceAll(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    invoke-static {v3}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I

    move-result v3

    invoke-virtual {p1, v3}, Landroid/view/View;->setFadingEdgeLength(I)V

    .line 833
    iget-object v3, p2, Lrexsee/core/style/StyleSheet;->scrollbar_x:Ljava/lang/String;

    const-string v4, "hidden"

    invoke-virtual {v3, v4}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v3

    if-eqz v3, :cond_7

    .line 834
    const/4 v3, 0x0

    invoke-virtual {p1, v3}, Landroid/view/View;->setHorizontalScrollBarEnabled(Z)V

    .line 841
    :cond_2
    :goto_1
    iget-object v3, p2, Lrexsee/core/style/StyleSheet;->overflow_y:Ljava/lang/String;

    const-string v4, "visible"

    invoke-virtual {v3, v4}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v3

    if-eqz v3, :cond_3

    .line 842
    const/4 v3, 0x1

    invoke-virtual {p1, v3}, Landroid/view/View;->setVerticalFadingEdgeEnabled(Z)V

    .line 843
    iget-object v3, p2, Lrexsee/core/style/StyleSheet;->fading_edge_y_length:Ljava/lang/String;

    invoke-virtual {v3}, Ljava/lang/String;->toLowerCase()Ljava/lang/String;

    move-result-object v3

    const-string v4, "px"

    const-string v5, ""

    invoke-virtual {v3, v4, v5}, Ljava/lang/String;->replaceAll(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    invoke-static {v3}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I

    move-result v3

    invoke-virtual {p1, v3}, Landroid/view/View;->setFadingEdgeLength(I)V

    .line 844
    iget-object v3, p2, Lrexsee/core/style/StyleSheet;->scrollbar_y:Ljava/lang/String;

    const-string v4, "hidden"

    invoke-virtual {v3, v4}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v3

    if-eqz v3, :cond_9

    .line 845
    const/4 v3, 0x0

    invoke-virtual {p1, v3}, Landroid/view/View;->setVerticalScrollBarEnabled(Z)V

    .line 852
    :cond_3
    :goto_2
    iget-object v3, p2, Lrexsee/core/style/StyleSheet;->play_sound_effect:Ljava/lang/String;

    const-string v4, "true"

    invoke-virtual {v3, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v3

    invoke-virtual {p1, v3}, Landroid/view/View;->setSoundEffectsEnabled(Z)V

    .line 853
    iget-object v3, p2, Lrexsee/core/style/StyleSheet;->enable:Ljava/lang/String;

    const-string v4, "false"

    invoke-virtual {v3, v4}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v3

    if-eqz v3, :cond_b

    move v3, v8

    :goto_3
    invoke-virtual {p1, v3}, Landroid/view/View;->setEnabled(Z)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    .line 855
    :try_start_1
    invoke-virtual {p1}, Landroid/view/View;->getTag()Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Lrexsee/natives/ViewTag;

    .line 856
    .local v2, "viewTag":Lrexsee/natives/ViewTag;
    iget-object v3, v2, Lrexsee/natives/ViewTag;->type:Ljava/lang/String;

    const-string v4, "ImageView"

    invoke-virtual {v3, v4}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v3

    if-nez v3, :cond_4

    .line 857
    iget-object v3, v2, Lrexsee/natives/ViewTag;->type:Ljava/lang/String;

    const-string v4, "PageView"

    invoke-virtual {v3, v4}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v3

    if-eqz v3, :cond_c

    .line 858
    const/4 v3, 0x1

    invoke-virtual {p1, v3}, Landroid/view/View;->setClickable(Z)V
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_1

    .line 875
    .end local v0    # "bg":Landroid/graphics/drawable/Drawable;
    .end local v2    # "viewTag":Lrexsee/natives/ViewTag;
    :cond_4
    :goto_4
    return-void

    .line 822
    :cond_5
    :try_start_2
    iget-object v3, p2, Lrexsee/core/style/StyleSheet;->visibility:Ljava/lang/String;

    const-string v4, "invisible"

    invoke-virtual {v3, v4}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v3

    if-eqz v3, :cond_6

    .line 823
    const/4 v3, 0x4

    invoke-virtual {p1, v3}, Landroid/view/View;->setVisibility(I)V
    :try_end_2
    .catch Ljava/lang/Exception; {:try_start_2 .. :try_end_2} :catch_0

    goto/16 :goto_0

    .line 872
    :catch_0
    move-exception v3

    move-object v1, v3

    .line 873
    .local v1, "e":Ljava/lang/Exception;
    const-string v3, "SetStyle/View"

    invoke-virtual {p0, v3, v1}, Lrexsee/core/browser/Browser;->exception(Ljava/lang/String;Ljava/lang/Exception;)V

    goto :goto_4

    .line 825
    .end local v1    # "e":Ljava/lang/Exception;
    :cond_6
    const/4 v3, 0x0

    :try_start_3
    invoke-virtual {p1, v3}, Landroid/view/View;->setVisibility(I)V

    goto/16 :goto_0

    .line 836
    .restart local v0    # "bg":Landroid/graphics/drawable/Drawable;
    :cond_7
    const/4 v3, 0x1

    invoke-virtual {p1, v3}, Landroid/view/View;->setHorizontalScrollBarEnabled(Z)V

    .line 837
    invoke-virtual {p2}, Lrexsee/core/style/StyleSheet;->getScrollbarXStyle()I

    move-result v3

    invoke-virtual {p1, v3}, Landroid/view/View;->setScrollBarStyle(I)V

    .line 838
    iget-object v3, p2, Lrexsee/core/style/StyleSheet;->scrollbar_x:Ljava/lang/String;

    const-string v4, "visible"

    invoke-virtual {v3, v4}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v3

    if-eqz v3, :cond_8

    move v3, v8

    :goto_5
    invoke-virtual {p1, v3}, Landroid/view/View;->setScrollbarFadingEnabled(Z)V

    goto/16 :goto_1

    :cond_8
    move v3, v7

    goto :goto_5

    .line 847
    :cond_9
    const/4 v3, 0x1

    invoke-virtual {p1, v3}, Landroid/view/View;->setVerticalScrollBarEnabled(Z)V

    .line 848
    invoke-virtual {p2}, Lrexsee/core/style/StyleSheet;->getScrollbarYStyle()I

    move-result v3

    invoke-virtual {p1, v3}, Landroid/view/View;->setScrollBarStyle(I)V

    .line 849
    iget-object v3, p2, Lrexsee/core/style/StyleSheet;->scrollbar_y:Ljava/lang/String;

    const-string v4, "visible"

    invoke-virtual {v3, v4}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v3

    if-eqz v3, :cond_a

    move v3, v8

    :goto_6
    invoke-virtual {p1, v3}, Landroid/view/View;->setScrollbarFadingEnabled(Z)V
    :try_end_3
    .catch Ljava/lang/Exception; {:try_start_3 .. :try_end_3} :catch_0

    goto/16 :goto_2

    :cond_a
    move v3, v7

    goto :goto_6

    :cond_b
    move v3, v7

    .line 853
    goto :goto_3

    .line 860
    .restart local v2    # "viewTag":Lrexsee/natives/ViewTag;
    :cond_c
    :try_start_4
    iget-object v3, p2, Lrexsee/core/style/StyleSheet;->event_touch:Ljava/lang/String;

    const-string v4, "true"

    invoke-virtual {v3, v4}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v3

    if-eqz v3, :cond_d

    iget-boolean v3, v2, Lrexsee/natives/ViewTag;->touchEvent:Z

    if-nez v3, :cond_d

    .line 861
    const/4 v3, 0x1

    iput-boolean v3, v2, Lrexsee/natives/ViewTag;->touchEvent:Z

    .line 862
    const/4 v3, 0x1

    invoke-virtual {p1, v3}, Landroid/view/View;->setClickable(Z)V

    .line 863
    new-instance v3, Lrexsee/natives/clazz/ViewOnTouchListener;

    iget-object v4, v2, Lrexsee/natives/ViewTag;->id:Ljava/lang/String;

    iget-object v5, p2, Lrexsee/core/style/StyleSheet;->event_touchmove:Ljava/lang/String;

    const-string v6, "true"

    invoke-virtual {v5, v6}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v5

    const/4 v6, 0x0

    invoke-direct {v3, p0, v4, v5, v6}, Lrexsee/natives/clazz/ViewOnTouchListener;-><init>(Lrexsee/core/browser/Browser;Ljava/lang/String;ZLrexsee/dialog/ImageMultiTouchListener;)V

    invoke-virtual {p1, v3}, Landroid/view/View;->setOnTouchListener(Landroid/view/View$OnTouchListener;)V

    goto/16 :goto_4

    .line 870
    .end local v2    # "viewTag":Lrexsee/natives/ViewTag;
    :catch_1
    move-exception v3

    goto/16 :goto_4

    .line 864
    .restart local v2    # "viewTag":Lrexsee/natives/ViewTag;
    :cond_d
    iget-object v3, p2, Lrexsee/core/style/StyleSheet;->event_touch:Ljava/lang/String;

    const-string v4, "false"

    invoke-virtual {v3, v4}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v3

    if-eqz v3, :cond_4

    iget-boolean v3, v2, Lrexsee/natives/ViewTag;->touchEvent:Z

    if-eqz v3, :cond_4

    .line 865
    const/4 v3, 0x1

    iput-boolean v3, v2, Lrexsee/natives/ViewTag;->touchEvent:Z

    .line 866
    const/4 v3, 0x0

    invoke-virtual {p1, v3}, Landroid/view/View;->setClickable(Z)V

    .line 867
    const/4 v3, 0x0

    invoke-virtual {p1, v3}, Landroid/view/View;->setOnTouchListener(Landroid/view/View$OnTouchListener;)V
    :try_end_4
    .catch Ljava/lang/Exception; {:try_start_4 .. :try_end_4} :catch_1

    goto/16 :goto_4
.end method
